summary refs log tree commit diff
path: root/webrtc/src/opcodes/Version.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-07 19:15:33 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-03-07 19:15:33 +1100
commitb529a372644fab22b34007353cc69caf3de5331c (patch)
treede28ca1eb4e95ba484bf28c1a978685c59204304 /webrtc/src/opcodes/Version.ts
parentMerge branch 'master' into maddyrtc (diff)
downloadserver-b529a372644fab22b34007353cc69caf3de5331c.tar.xz
augh
Diffstat (limited to '')
-rw-r--r--webrtc/src/opcodes/Version.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/webrtc/src/opcodes/Version.ts b/webrtc/src/opcodes/Version.ts
new file mode 100644

index 00000000..0ea6eb4d --- /dev/null +++ b/webrtc/src/opcodes/Version.ts
@@ -0,0 +1,14 @@ +import { WebSocket } from "@fosscord/gateway"; +import { Payload } from "./index"; +import { setHeartbeat } from "../util"; +import { Server } from "../Server" + +export async function onVersion(this: Server, socket: WebSocket, data: Payload) { + socket.send(JSON.stringify({ + op: 16, + d: { + voice: "0.8.31", //version numbers? + rtc_worker: "0.3.18", + } + })) +} \ No newline at end of file