Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get client id socket io

// NodeJs 
// Socket.io get id client connected
io.on('connection', (socket) => {
	console.log(socket.id) // This is ID session the client
});  
 
PREVIOUS NEXT
Tagged: #client #id #socket #io
ADD COMMENT
Topic
Name
3+6 =