Skip to content

Commit 4d6c80a

Browse files
committed
Fix type error
1 parent d1d4f6a commit 4d6c80a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/webrtc.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { WebSocket, WebSocketServer } from "ws";
21
import express from "express";
32
import * as jose from "jose";
43
import { prisma } from "./db";
@@ -39,7 +38,7 @@ export const CreateSession = async (req: express.Request, res: express.Response)
3938
// extract the websocket and ip from the tuple
4039
const [ws, ip] = wsTuple;
4140

42-
let timeout: NodeJS.Timeout | undefined;
41+
let timeout: ReturnType<typeof setTimeout> | undefined;
4342

4443
let httpClose: (() => void) | null = null;
4544

0 commit comments

Comments
 (0)