update webrtc types package

This commit is contained in:
Puyodead1 2025-06-25 23:17:14 -04:00
parent 526a8da8f5
commit ac1779b480
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
6 changed files with 9 additions and 9 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -40,6 +40,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.14.0",
"@spacebarchat/spacebar-webrtc-types": "^1.0.1",
"@types/amqplib": "^0.10.5",
"@types/bcrypt": "^5.0.2",
"@types/body-parser": "^1.19.5",
@ -67,7 +68,6 @@
"husky": "^9.1.7",
"prettier": "^3.5.3",
"pretty-quick": "^4.1.1",
"spacebar-webrtc-types": "github:spacebarchat/spacebar-webrtc-types",
"typescript": "^5.8.3"
},
"dependencies": {
@ -132,4 +132,4 @@
"pg": "^8.14.1",
"sqlite3": "^5.1.7"
}
}
}

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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";