From 70bfe9f4aaea67c3aeb9289b7aa06b2b4e492d72 Mon Sep 17 00:00:00 2001 From: aetheryx Date: Sat, 6 Feb 2021 18:01:58 +0100 Subject: [PATCH] chore(Gateway): clarify Heartbeat OP as bidirectional (#83) --- deno/v8/gateway/mod.ts | 3 ++- v8/gateway/index.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deno/v8/gateway/mod.ts b/deno/v8/gateway/mod.ts index 49480211..621b514b 100644 --- a/deno/v8/gateway/mod.ts +++ b/deno/v8/gateway/mod.ts @@ -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, /** diff --git a/v8/gateway/index.ts b/v8/gateway/index.ts index 90b6cf37..4f8de86e 100644 --- a/v8/gateway/index.ts +++ b/v8/gateway/index.ts @@ -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, /**