DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+1 =
Submit