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.
Copy file name to clipboardExpand all lines: .vscode/ltex.hiddenFalsePositives.en-US.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,3 +65,4 @@
65
65
{"rule":"REPEATED_VERBS","sentence":"^\\Q\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q Hello Actor Receive Received upon establishing a connection.\\E$"}
66
66
{"rule":"REPEATED_VERBS","sentence":"^\\Q\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q New Session Actor Receive Received by all sessions except the new one.\\E$"}
67
67
{"rule":"REPEATED_VERBS","sentence":"^\\Q\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q Actor Certificate Invalidation Actor Send/Receive Received by server when an actor certificate has been invalidated.\\E$"}
68
+
{"rule":"REPEATED_VERBS","sentence":"^\\Q\\E(?:Dummy|Ina|Jimmy-)[0-9]+\\Q Message Actor Receive Received when a message is sent to the actor.\\E$"}
|`0`| Dispatch | Actor Receive | Delivery of a message payload to a client. |
259
-
|`1`| Heartbeat | Actor Send/Receive | Keep alive for the WebSocket session. |
260
-
|`2`| Hello | Actor Receive | Received upon establishing a connection. |
261
-
|`3`| Identify | Actor Send | Identify to the server. |
262
-
|`4`| Server Certificate Change | Actor Receive | Received when the server's certificate changed. |
263
-
|`5`| New Session | Actor Receive | Received by all sessions except the new one. |
264
-
|`6`| Actor Certificate Invalidation | Actor Send/Receive | Received by server when an actor certificate has been invalidated. Sent to server when an actor invalidates one of their certificates. |
257
+
The following opcodes are defined by the `core` namespace:
|`0`| Heartbeat | Actor Send/Receive | Keep alive for the WebSocket session. |
262
+
|`1`| Hello | Actor Receive | Received upon establishing a connection. |
263
+
|`2`| Identify | Actor Send | Identify to the server. |
264
+
|`3`| New Session | Actor Receive | Received by all sessions except the new one. |
265
+
|`4`| Actor Certificate Invalidation | Actor Send/Receive | An actor certificate has been invalidated. Sent *to* server when an actor invalidates one of their certificates. |
266
+
|`5`| Resume | Actor Send | Resume a connection. |
267
+
|`6`| Server Certificate Change | Actor Receive | Received when the server's certificate changed. |
268
+
|`7`| Heartbeat ACK | Actor Receive | Acknowledgement of a heartbeat |
269
+
|`8`| Service Channel | Actor Send/Receive | Open or close a service channel. |
270
+
|`9`| Service Channel ACK | Actor Receive | Acknowledgement of a service channel event. |
265
271
266
272
##### 3.2.1.3 Event names `t`
267
273
268
-
#### 3.2.2 Events over REST
274
+
The `t` field in a gateway event payload indicates the event name for this payload. Event names
275
+
are only applicable for and present in `DISPATCH` opcode payloads.
276
+
277
+
Event names are strings defined by the namespace context and are used to differentiate between different
278
+
types of events within the `DISPATCH` opcode.
279
+
280
+
String values for event names are to be formatted in `SCREAMING_SNAKE_CASE`.
281
+
282
+
#### 3.2.2 Heartbeats
283
+
284
+
Heartbeats are used to keep the WebSocket connection alive. The client sends a heartbeat event to the
285
+
server with a specified interval, which then responds with an acknowledgement for the heartbeat.
286
+
Servers must account for the time it takes for the client to send the heartbeat event. Before closing
287
+
a connection due to a missed heartbeat, the server should request a heartbeat event from the client
288
+
by sending a heartbeat event to the client.
289
+
290
+
The `d` payload for a heartbeat event is an empty object `{}`.
291
+
292
+
#### 3.2.3 "Hello" event
293
+
294
+
The "Hello" event is sent by the server to the client upon establishing a connection. The `d` payload
295
+
for a "Hello" event is an object containing a `heartbeat_interval` field, which specifies the interval
296
+
in milliseconds at which the client should send heartbeat events to the server.
0 commit comments