You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
|`n`| string |[Namespace](#82-namespaces) context for this payload. |
244
+
|`op`| uint16 | Gateway Opcode indicating the type of payload. |
245
+
|`d`| JSON value | The event data associated with this payload. |
246
+
|`s`| uint32 | Sequence number of the event, used for guaranteed, ordered delivery |
245
247
246
248
##### 3.2.1.1 Namespaces `n`
247
249
@@ -264,12 +266,27 @@ The following opcodes are defined by the `core` namespace:
264
266
|`2`| Identify | Actor Send | Identify to the server. |
265
267
|`3`| New Session | Actor Receive | Received by all sessions except the new one. |
266
268
|`4`| Actor Certificate Invalidation | Actor Send/Receive | An actor certificate has been invalidated. Sent *to* server when an actor invalidates one of their certificates. |
267
-
|`5`| Resume | Actor Send| Resume a connection. |
269
+
|`5`| Resume | Actor Send/Receive | Replay events after re-connecting.|
268
270
|`6`| Server Certificate Change | Actor Receive | Received when the server's certificate changed. |
269
271
|`7`| Heartbeat ACK | Actor Receive | Acknowledgement of a heartbeat |
270
272
|`8`| Service Channel | Actor Send/Receive | Open or close a service channel. |
271
273
|`9`| Service Channel ACK | Actor Receive | Acknowledgement of a service channel event. |
272
274
275
+
##### 3.2.1.3 Sequence numbers `s`
276
+
277
+
<!-->
278
+
TODO
279
+
<-->
280
+
281
+
!!! bug TODO
282
+
283
+
How are we going to do sequence numbers? Requirements are:
284
+
285
+
- Guaranteed, ordered delivery of payloads
286
+
- Notice delivery gaps, especially when connection stability is flawed
0 commit comments