Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

socket.io how do i get a list of connected sockets clients

const sockets = Array.from(io.sockets.sockets).map(socket => socket[0]);
console.log(sockets);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #connected #sockets #clients
ADD COMMENT
Topic
Name
6+1 =