1 files changed, 10 insertions, 0 deletions
diff --git a/webrtc/src/opcodes/Connect.ts b/webrtc/src/opcodes/Connect.ts
new file mode 100644
index 00000000..b312d6f2
--- /dev/null
+++ b/webrtc/src/opcodes/Connect.ts
@@ -0,0 +1,10 @@
+import { WebSocket } from "@fosscord/gateway";
+import { Payload } from "./index";
+import { Server } from "../Server"
+
+export async function onConnect(this: Server, socket: WebSocket, data: Payload) {
+ socket.send(JSON.stringify({
+ op: 15,
+ d: { any: 100 }
+ }))
+}
\ No newline at end of file
|