can you tell me how to trigger custom events on Socket.io to be able to manage not just it's own like io.sockets.on('connection', ...) But my custom io.sockets.on('session:reload', ...)
In oldes versions you could make it this way: io.sockets.$emit("session:reload", sid);
Aucun commentaire:
Enregistrer un commentaire