up
This commit is contained in:
parent
2eee8fe3c4
commit
b0cd176005
1 changed files with 1 additions and 2 deletions
|
|
@ -98,8 +98,7 @@ export default class Handler {
|
||||||
const log = getLogger({})
|
const log = getLogger({})
|
||||||
log("conneting to relay...", this.settings.relays[0])
|
log("conneting to relay...", this.settings.relays[0])
|
||||||
const s = relayInit(this.settings.relays[0]) // TODO: create multiple conns for multiple relays
|
const s = relayInit(this.settings.relays[0]) // TODO: create multiple conns for multiple relays
|
||||||
await new Promise<void>(res => s.on('connect', () => { console.log("okk"); res() }))
|
s.on('connect', () => { console.log("connected") })
|
||||||
log("relay connected, subbing...")
|
|
||||||
s.on('disconnect', () => {
|
s.on('disconnect', () => {
|
||||||
log("relay disconnected, will try to reconnect")
|
log("relay disconnected, will try to reconnect")
|
||||||
s.close()
|
s.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue