We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 339a673 commit c4d7ba4Copy full SHA for c4d7ba4
lite.ts
@@ -94,7 +94,7 @@ interface PeerEvents {
94
disconnect: () => void
95
close: () => void
96
error: (err: Error) => void
97
- data: (data: Uint8Array | string) => void
+ data: (data: Uint8Array) => void
98
end: () => void
99
finish: () => void
100
iceStateChange: (iceConnectionState: RTCIceConnectionState, iceGatheringState: RTCIceGatheringState) => void
@@ -420,7 +420,7 @@ class Peer extends EventEmitter<PeerEvents> {
420
/**
421
* Push data to the readable side. If data is null, signals end of stream.
422
*/
423
- push (data: Uint8Array | string | null): void {
+ push (data: Uint8Array | null): void {
424
if (data === null) {
425
this._readableEnded = true
426
this.emit('end')
0 commit comments