We will discuss some server-related events in this section.
This event is fired when an initial connection with a client is established:
Here, socket
is used in further communication with the client.
The message
event is emitted when a message sent with socket.send
is received:
Here, message
is the message sent and ack_callback
is an optional acknowledgment function.
This event is fired when the socket disconnects:
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.