Skip to content

Commit

Permalink
FIX type error of unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
croatialu committed Apr 28, 2024
1 parent 339021a commit 6927db5
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -88,7 +88,7 @@ export type SimplePeerConnectionHandlerOptions = {
signalingServerUrl?: string;
wrtc?: SimplePeerWrtc;
config?: SimplePeerConfig;
webSocketConstructor?: typeof WebSocket;
webSocketConstructor?: WebSocket;
};

export const SIMPLE_PEER_PING_INTERVAL = 1000 * 60 * 2;
Expand All @@ -105,7 +105,7 @@ export function getConnectionHandlerSimplePeer({
ensureProcessNextTickIsSet();

const signalingServerUrl = signalingServerUrlInput || DEFAULT_SIGNALING_SERVER;
const webSocketConstructor = webSocketConstructorInput || WebSocket;
const webSocketConstructor = (webSocketConstructorInput || WebSocket) as typeof WebSocket;

if (
signalingServerUrl.includes(DEFAULT_SIGNALING_SERVER_HOSTNAME) &&
Expand Down

0 comments on commit 6927db5

Please sign in to comment.