Websokets problem with broatcast

hello, somebody has happened that broatcast does not work !


image
image
image

only return the consola in the same window

I don’t notice anything too wrong currently.

If you open other window does it subscribe to channel too?

What if you try to emit to specific sockets, something similar to this

let sockets = new Set()

class ChatController {
    constructor({ socket, request }) {
        this.socket = socket
        this.request = request
        // Start tracking socket id
        sockets.add(socket.id)
    }
    
    onMessage(message) {
        // Log out all active sockets, when logging out 
        // see of both clients are in here
        console.log(sockets)
        this.socket.emitTo('message', message, Array.from(sockets))
    }

    // Stop tracking socket id
    onClose(socket) {
        sockets.delete(socket.id)
    }
}