receive Server messages
The server sends two kinds of message: control frames, identified by an
op field, and topic frames, identified by a topic field. Route on
op first, then on topic. Ignore any value you do not recognize so
that new message types do not break your client.
control
Acknowledgements and errors.
oneOf
chat
| Field | Type | Description |
|---|---|---|
topicrequired | object | |
channelrequired | string | The channel this frame belongs to. |
eventrequired | ServerMessage | A chat event, identified by its |
user
| Field | Type | Description |
|---|---|---|
topicrequired | object | |
eventrequired | UserTopicEvent | A direct message or friend event, identified by its |
events
| Field | Type | Description |
|---|---|---|
topicrequired | object | |
eventrequired | PlatformEvent | One channel event. The same shape is returned by |