Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

const sockets = (await io.fetchSockets()).map(socket => socket.id);
console.log(sockets);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #connected #sockets #clients
ADD COMMENT
Topic
Name
7+7 =