-
Is your feature request related to a problem? Please describe. Describe the solution you'd like io.on("connection", (socket) => {
console.log(socket.id); // ojIckSD2jqNzOqIrAGzL
}); It could be useful like getting in realtime the users connected to the instance and not getting the socket id when a specific event is triggered. Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In the socket.io API, the connection event is an alias of the connect event. Which corresponds to a connection of a socket to a namespace (the default in the example you gave). https://docs.rs/socketioxide/latest/socketioxide/handler/connect/index.html |
Beta Was this translation helpful? Give feedback.
In the socket.io API, the connection event is an alias of the connect event. Which corresponds to a connection of a socket to a namespace (the default in the example you gave).
https://docs.rs/socketioxide/latest/socketioxide/handler/connect/index.html