Skip to content

Commit

Permalink
Explanatory comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 committed Sep 5, 2023
1 parent e13f4e5 commit e3059a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/webrtc-signal/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export class WebRTCSignal implements Transport, Startable {
pubsub.subscribe(WEBRTC_SIGNAL_TOPIC)
subscribed = true
} catch (err: any) {
// Pubsub may not be started yet
if ((err as Error).message.includes(ERR_PUBSUB_NOT_STARTED)) {
// Wait before retrying
await delay(500)
Expand Down
2 changes: 2 additions & 0 deletions test/interop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ async function createGoPeer (options: SpawnOptions): Promise<Daemon> {
opts.push(`-id=${options.key}`)
}

// Use only the required muxer as js-libp2p nodes run into an error causing the mplex muxer tests to fail
// with error "failed to negotiate stream multiplexer: protocols not supported: [/yamux/1.0.0]"
if (options.muxer != null) {
opts.push(`-muxer=${options.muxer}`)
}
Expand Down

0 comments on commit e3059a0

Please sign in to comment.