bitflag enum io.WebSocketOptions
Overview
bitflag enum WebSocketOptions: io.SocketOptions { IncludeControlFrames, DisableServerHandshakeResponse, DisableCloseResponse, DisablePongResponse, };
Detailed Documentation
Enum Values
IncludeControlFrames
Make incoming control frames such as Close, Ping & Pong
available via io.WebSocket.read
DisableServerHandshakeResponse
Disable automatic transmission of 101 Switching Protocols handshake
response from the server. After accepting a conneciton, you can inspect
the handshake request via io.WebSocket.m_handshakeRequest and then
issue a handshake response via io.WebSocket.serverHandshake (thus
either accepting or rejecting the incoming WebSocket upgrade request).
DisableCloseResponse
Disable automatic transmission of Close replies. If you still want
to support WebSocket graceful close, read incoming control Close
frame, then manually send a Close with io.WebSocket.writeClose.
DisablePongResponse
Disable automatic transmission of Pong replies. You would need to
read incoming control Ping frame, then manually send a Pong
using io.WebSocket.writePong.