Add event for socket creation
This commit is contained in:
@@ -15,6 +15,7 @@ export class Pool {
|
|||||||
const socket = new Socket(url)
|
const socket = new Socket(url)
|
||||||
|
|
||||||
this.data.set(url, socket)
|
this.data.set(url, socket)
|
||||||
|
this.bus.emit('init', {url})
|
||||||
|
|
||||||
socket.bus.addListeners({
|
socket.bus.addListeners({
|
||||||
open: () => this.bus.emit('open', {url}),
|
open: () => this.bus.emit('open', {url}),
|
||||||
|
|||||||
Reference in New Issue
Block a user