Add event for socket creation

This commit is contained in:
Jonathan Staab
2023-03-29 10:59:38 -05:00
parent ddcc926fa6
commit 8811753ed7
+1
View File
@@ -15,6 +15,7 @@ export class Pool {
const socket = new Socket(url)
this.data.set(url, socket)
this.bus.emit('init', {url})
socket.bus.addListeners({
open: () => this.bus.emit('open', {url}),