wsProtocolVersion top-level constant
int
const wsProtocolVersion
Wire protocol version. Bumped on any incompatible framing change.
2 added WsControl.signal; 3 added WsControl.unsubscribe; 4 added the authentication handshake (WsControl.challenge, WsControl.auth, WsControl.authOk), which every connection must complete before any other frame is honoured. WsFrame.decode rejects both unknown versions and unknown frame types, so a hub and its clients must be deployed together.
Implementation
const int wsProtocolVersion = 4;