Variable: PROTOCOL_VERSION
ts
const PROTOCOL_VERSION: 3 = 3;Defined in: protocol.ts:22
The latest version of the protocol. A client asks for a version with v in the query when it connects, and the room's welcome frame says which it will speak: the one asked for, or this one if that is later. A client that does not ask is spoken to in version 1.
Version 2 adds array patches: an array that changes can be sent element by element, as [changes, length] in a patch.
Version 3 adds presence as changes: a presence frame can say who is new or different (set) and who is gone (gone) in place of the whole list.