From 493c21968b2758fe987e63a7b7750427c726068d Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Fri, 16 Sep 2022 12:54:02 +1000 Subject: Probably broken merge from webrtc --- webrtc/src/opcodes/Connect.ts | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 webrtc/src/opcodes/Connect.ts (limited to 'webrtc/src/opcodes/Connect.ts') diff --git a/webrtc/src/opcodes/Connect.ts b/webrtc/src/opcodes/Connect.ts deleted file mode 100644 index 1f874a44..00000000 --- a/webrtc/src/opcodes/Connect.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { WebSocket } from "@fosscord/gateway"; -import { Payload } from "./index"; -import { Server } from "../Server" - -/* -Sent by client: - -{ - "op": 12, - "d": { - "audio_ssrc": 0, - "video_ssrc": 0, - "rtx_ssrc": 0, - "streams": [ - { - "type": "video", - "rid": "100", - "ssrc": 0, - "active": false, - "quality": 100, - "rtx_ssrc": 0, - "max_bitrate": 2500000, - "max_framerate": 20, - "max_resolution": { - "type": "fixed", - "width": 1280, - "height": 720 - } - } - ] - } -} -*/ - -export async function onConnect(this: Server, socket: WebSocket, data: Payload) { - socket.send(JSON.stringify({ //what is op 15? - op: 15, - d: { any: 100 } - })) -} \ No newline at end of file -- cgit 1.5.1