spacebar/webrtc/src/opcodes/Connect.ts
2022-01-17 02:59:26 +11:00

10 lines
264 B
TypeScript

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 }
}))
}