diff --git a/src/transports/base.ts b/src/transports/base.ts index f6d775d..c6fe575 100644 --- a/src/transports/base.ts +++ b/src/transports/base.ts @@ -8,7 +8,7 @@ export abstract class BasePeer implements Peer { challenge: Uint8Array; protected _socket: any; - constructor({ socket, uris }: PeerConstructorOptions) { + constructor({ socket, uris = [] }: PeerConstructorOptions) { this.connectionUris = uris.map((uri) => new URL(uri.toString())); this.challenge = new Uint8Array(); this._socket = socket;