Skip to content

Commit 29f1679

Browse files
committed
chore: align with libdatachannel
1 parent 122950d commit 29f1679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function preload(): void { nodeDataChannel.preload(); }
88
export function initLogger(level: LogLevel): void { nodeDataChannel.initLogger(level); }
99
export function cleanup(): void { nodeDataChannel.cleanup(); }
1010
export function setSctpSettings(settings: SctpSettings): void { nodeDataChannel.setSctpSettings(settings); }
11-
export function listenIceUdpMux(port: number, cb?: (req: { ufrag: string, host: string, port: number }) => void, host?: string): void { nodeDataChannel.listenIceUdpMux(port, cb, host); }
11+
export function listenIceUdpMux(port: number, cb?: (req: { ufrag: string, host: string, port: number }) => void | null, host?: string | null): void { nodeDataChannel.listenIceUdpMux(port, cb, host); }
1212

1313
export interface Audio {
1414
addAudioCodec(payloadType: number, codec: string, profile?: string): void;

0 commit comments

Comments
 (0)