summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2025-06-25 23:17:14 -0400
committerPuyodead1 <puyodead@proton.me>2025-06-25 23:17:14 -0400
commitac1779b480fabd2d855b87ed05da890e5c186c09 (patch)
tree9d1830aaedf458273ee8da8f770419a79973770a /src
parentadd webrtc support (#1284) (diff)
downloadserver-ts-ac1779b480fabd2d855b87ed05da890e5c186c09.tar.xz
update webrtc types package
Diffstat (limited to 'src')
-rw-r--r--src/webrtc/opcodes/Identify.ts6
-rw-r--r--src/webrtc/opcodes/Video.ts4
-rw-r--r--src/webrtc/util/MediaServer.ts2
-rw-r--r--src/webrtc/util/WebRtcWebSocket.ts2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/webrtc/opcodes/Identify.ts b/src/webrtc/opcodes/Identify.ts

index 065813fbc..9bcaa673d 100644 --- a/src/webrtc/opcodes/Identify.ts +++ b/src/webrtc/opcodes/Identify.ts
@@ -24,15 +24,15 @@ import { VoiceState, } from "@spacebar/util"; import { + generateSsrc, mediaServer, + Send, VoiceOPCodes, VoicePayload, WebRtcWebSocket, - Send, - generateSsrc, } from "@spacebar/webrtc"; +import { SSRCs } from "@spacebarchat/spacebar-webrtc-types"; import { subscribeToProducers } from "./Video"; -import { SSRCs } from "spacebar-webrtc-types"; export async function onIdentify(this: WebRtcWebSocket, data: VoicePayload) { clearTimeout(this.readyTimeout); diff --git a/src/webrtc/opcodes/Video.ts b/src/webrtc/opcodes/Video.ts
index d78827a41..2b327a001 100644 --- a/src/webrtc/opcodes/Video.ts +++ b/src/webrtc/opcodes/Video.ts
@@ -18,12 +18,12 @@ import { Stream, validateSchema, VoiceVideoSchema } from "@spacebar/util"; import { mediaServer, + Send, VoiceOPCodes, VoicePayload, WebRtcWebSocket, - Send, } from "@spacebar/webrtc"; -import type { WebRtcClient } from "spacebar-webrtc-types"; +import type { WebRtcClient } from "@spacebarchat/spacebar-webrtc-types"; export async function onVideo(this: WebRtcWebSocket, payload: VoicePayload) { if (!this.webRtcClient) return; diff --git a/src/webrtc/util/MediaServer.ts b/src/webrtc/util/MediaServer.ts
index 848b3f73e..793419c6f 100644 --- a/src/webrtc/util/MediaServer.ts +++ b/src/webrtc/util/MediaServer.ts
@@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import type { SignalingDelegate } from "spacebar-webrtc-types"; +import type { SignalingDelegate } from "@spacebarchat/spacebar-webrtc-types"; import { green, red } from "picocolors"; export let mediaServer: SignalingDelegate; diff --git a/src/webrtc/util/WebRtcWebSocket.ts b/src/webrtc/util/WebRtcWebSocket.ts
index 5bb2da466..b97c1699e 100644 --- a/src/webrtc/util/WebRtcWebSocket.ts +++ b/src/webrtc/util/WebRtcWebSocket.ts
@@ -1,5 +1,5 @@ import { WebSocket } from "@spacebar/gateway"; -import type { WebRtcClient } from "spacebar-webrtc-types"; +import type { WebRtcClient } from "@spacebarchat/spacebar-webrtc-types"; export interface WebRtcWebSocket extends WebSocket { type: "guild-voice" | "dm-voice" | "stream";