Method Web.EngineIO.Socket()->create()
- 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.