Table of Contents
EngineIoServer class contains the logic for accepting and handling
connections from the client.
EngineIoSocket class represents one connection to a remote client.
Call this method on a connected
EngineIoSocket instance to queue a packet for sending to
This method is thread safe.
EngineIoSocket emits the following events:
This event is emitted when a connection is established.
Note This event cannot be trapped as it occurs before the “connection” event of
This event is emitted when the socket is closed either by the server or the client.
Stringindicating reason for close
Stringindicating description of reason or
This event is emitted when a packet is received from the remote client.
This event is emitted when a message packet is received from the remote client.
byteobject sent by the remote client
This event is raised just before sending packets to the remote client.
Collection<Packet<?>>being sent to the client
send method on
EngineIoSocket to send packets to the remote client.
Queuing of packets in case of polling transport are handled internally by
EngineIoSocket socket; // connected socket socket.send(new Packet<>(Packet.MESSAGE, "foo"));