summary refs log tree commit diff
path: root/src/opcodes/PresenceUpdate.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 22:05:17 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 22:05:17 +0100
commit3f8c652d68511ae765f5aa5ca3d2586ff5343e95 (patch)
tree9428f5bd93a312b51e1e72fcf6ca1b2dc78ae5c7 /src/opcodes/PresenceUpdate.ts
parentmove Schema from util to gateway (diff)
downloadserver-3f8c652d68511ae765f5aa5ca3d2586ff5343e95.tar.xz
setup listeners
Diffstat (limited to 'src/opcodes/PresenceUpdate.ts')
-rw-r--r--src/opcodes/PresenceUpdate.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/opcodes/PresenceUpdate.ts b/src/opcodes/PresenceUpdate.ts

index 95cf2306..e6a389ba 100644 --- a/src/opcodes/PresenceUpdate.ts +++ b/src/opcodes/PresenceUpdate.ts
@@ -1,4 +1,6 @@ -import { Payload } from "../util/Constants"; +import { CLOSECODES, Payload } from "../util/Constants"; import WebSocket from "../util/WebSocket"; -export function onPresenceUpdate(this: WebSocket, data: Payload) {} +export function onPresenceUpdate(this: WebSocket, data: Payload) { + return this.close(CLOSECODES.Unknown_error); +}