This commit is contained in:
pseudozach
2022-12-28 02:36:54 -08:00
committed by fiatjaf
parent 5db1934fa4
commit 3cb351a5f4

View File

@@ -102,13 +102,13 @@ event.sig = signEvent(event, sk)
let pub = relay.publish(event) let pub = relay.publish(event)
pub.on('ok', () => { pub.on('ok', () => {
console.log(`{relay.url} has accepted our event`) console.log(`${relay.url} has accepted our event`)
}) })
pub.on('seen', () => { pub.on('seen', () => {
console.log(`we saw the event on {relay.url}`) console.log(`we saw the event on ${relay.url}`)
}) })
pub.on('failed', reason => { pub.on('failed', reason => {
console.log(`failed to publish to {relay.url}: ${reason}`) console.log(`failed to publish to ${relay.url}: ${reason}`)
}) })
await relay.close() await relay.close()