Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

socket io socket emit vs send

// allows you to emit custom events on the server and client
socket.emit('my event', 'my data')

// sends messages which are received with the 'message' event
socket.send('my message')
Source by socket.io #
 
PREVIOUS NEXT
Tagged: #socket #io #socket #emit #send
ADD COMMENT
Topic
Name
4+8 =