Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/transport-webrtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"it-stream-types": "^2.0.2",
"main-event": "^1.0.1",
"multiformats": "^13.4.0",
"node-datachannel": "^0.29.0",
"node-datachannel": "^0.30.0",
"p-defer": "^4.0.1",
"p-event": "^7.0.0",
"p-timeout": "^7.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export async function initiateConnection ({ rtcConfiguration, dataChannel, signa
})

const muxerFactory = new DataChannelMuxerFactory({
// @ts-expect-error https://github.com/murat-dogan/node-datachannel/pull/370
peerConnection,
dataChannelOptions: dataChannel
})
Expand Down Expand Up @@ -209,7 +208,6 @@ export async function initiateConnection ({ rtcConfiguration, dataChannel, signa

return {
remoteAddress: ma,
// @ts-expect-error https://github.com/murat-dogan/node-datachannel/pull/370
peerConnection,
muxerFactory
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ export class WebRTCTransport implements Transport<WebRTCDialEvents>, Startable {
}
})
const muxerFactory = new DataChannelMuxerFactory({
// @ts-expect-error https://github.com/murat-dogan/node-datachannel/pull/370
peerConnection,
dataChannelOptions: this.init.dataChannel
})
Expand All @@ -229,7 +228,6 @@ export class WebRTCTransport implements Transport<WebRTCDialEvents>, Startable {
})

const webRTCConn = toMultiaddrConnection({
// @ts-expect-error https://github.com/murat-dogan/node-datachannel/pull/370
peerConnection,
remoteAddr: remoteAddress,
metrics: this.metrics?.listenerEvents,
Expand All @@ -246,7 +244,6 @@ export class WebRTCTransport implements Transport<WebRTCDialEvents>, Startable {
})

// close the connection on shut down
// @ts-expect-error https://github.com/murat-dogan/node-datachannel/pull/370
this._closeOnShutdown(peerConnection, webRTCConn)
} catch (err: any) {
this.log.error('incoming signaling error - %e', err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export async function connect (peerConnection: RTCPeerConnection | DirectRTCPeer
// Creating the connection before completion of the noise
// handshake ensures that the stream opening callback is set up
const maConn = toMultiaddrConnection({
// @ts-expect-error types are broken
peerConnection,
remoteAddr: options.remoteAddr,
metrics: options.events,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ export async function createDialerRTCPeerConnection (role: 'client' | 'server',
})

const muxerFactory = new DataChannelMuxerFactory({
// @ts-expect-error https://github.com/murat-dogan/node-datachannel/pull/370
peerConnection,
metrics: options.events,
dataChannelOptions: options.dataChannel
Expand Down
1 change: 0 additions & 1 deletion packages/transport-webrtc/test/maconn.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe('Multiaddr Connection', () => {
reset: () => {}
})
const maConn = toMultiaddrConnection({
// @ts-expect-error https://github.com/murat-dogan/node-datachannel/pull/370
peerConnection,
remoteAddr,
metrics,
Expand Down
Loading