Skip to content

Commit

Permalink
chore(Gateway): clarify Heartbeat OP as bidirectional (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
aetheryx committed Feb 6, 2021
1 parent 63096d8 commit 70bfe9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deno/v8/gateway/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const enum GatewayOPCodes {
*/
Dispatch,
/**
* Fired periodically by the client to keep the connection alive
* A bidirectional opcode to maintain an active gateway connection.
* Fired periodically by the client, or fired by the gateway to request an immediate heartbeat from the client.
*/
Heartbeat,
/**
Expand Down
3 changes: 2 additions & 1 deletion v8/gateway/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const enum GatewayOPCodes {
*/
Dispatch,
/**
* Fired periodically by the client to keep the connection alive
* A bidirectional opcode to maintain an active gateway connection.
* Fired periodically by the client, or fired by the gateway to request an immediate heartbeat from the client.
*/
Heartbeat,
/**
Expand Down

0 comments on commit 70bfe9f

Please sign in to comment.