Please enable JavaScript.
Coggle requires JavaScript to display documents.
Socket.IO - Coggle Diagram
Socket.IO
-
receiving data
server
example
socket.on(key, (data)=>{})
-
client
-
example
socket.on(key, (data)=>{})
sending data
broadcast
-
how to use
client
socket.broadcast.emit(key, payload)
emit
-
how to use
client to server
socket.emit(key, payload
server
io.emit(key, payload)
-
-
-