Class Web.EngineIO.Socket
- Description
Runs a single Engine.IO session.
- Variable
request
finalProtocols.WebSocket.RequestWeb.EngineIO.Socket.request- Description
Contains the last request seen on this connection. Can be used to obtain cookies etc.
- Variable
sid
finalstringWeb.EngineIO.Socket.sid- Description
The unique session identifier (in the Engine.IO docs referred to as simply: id).
- Method
create
Web.EngineIO.Socket Web.EngineIO.Socket(Protocols.WebSocket.Requestreq,void|mappingoptions)- Parameter
options Optional options to override the defaults.
"pingTimeout":intIf, the connection is idle for longer than this, the connection is terminated, unit in
ms."pingInterval":intThe browser-client will send a small ping message every
pingInterval ms."allowUpgrades":intWhen
true(default), it allows the server to upgrade the connection to a real Protocols.WebSocket connection."compressionLevel":intThe gzip compressionlevel used to compress packets.
"compressionThreshold":intPackets smaller than this will not be compressed.