summary refs log tree commit diff
path: root/src/gateway/util/WebSocket.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-03 23:50:48 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-04-03 23:50:48 +1000
commit6ee26082efddfa4f996b4b0424a664a6a592501c (patch)
treeda69812661ebe48cac1240482cbeedd7082d2317 /src/gateway/util/WebSocket.ts
parentallow all role props through ready (diff)
downloadserver-6ee26082efddfa4f996b4b0424a664a6a592501c.tar.xz
Respect CLIENT_STATE_V2 capability
Diffstat (limited to 'src/gateway/util/WebSocket.ts')
-rw-r--r--src/gateway/util/WebSocket.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gateway/util/WebSocket.ts b/src/gateway/util/WebSocket.ts

index 972129c7..833756ff 100644 --- a/src/gateway/util/WebSocket.ts +++ b/src/gateway/util/WebSocket.ts
@@ -19,6 +19,7 @@ import { Intents, ListenEventOpts, Permissions } from "@spacebar/util"; import WS from "ws"; import { Deflate, Inflate } from "fast-zlib"; +import { Capabilities } from "./Capabilities"; // import { Client } from "@spacebar/webrtc"; export interface WebSocket extends WS { @@ -40,5 +41,6 @@ export interface WebSocket extends WS { events: Record<string, undefined | (() => unknown)>; member_events: Record<string, () => unknown>; listen_options: ListenEventOpts; + capabilities?: Capabilities; // client?: Client; }