From c95eb822e0cabf88bb1d6c9c4792f8da677dbbeb Mon Sep 17 00:00:00 2001 From: PaulPlay <80539587+therealPaulPlay@users.noreply.github.com> Date: Wed, 19 Feb 2025 16:37:12 +0100 Subject: [PATCH] fix: slightly increase timeout for connection attempt to signalling server --- package.json | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f528555..1dbc87a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "playpeerjs", - "version": "1.3.3", + "version": "1.3.4", "description": "WebRTC-based wrapper for creating robust peer-2-peer multiplayer systems with ease.", "type": "module", "main": "dist/playpeer.js", diff --git a/src/index.js b/src/index.js index c5bbd0e..7b75dfa 100644 --- a/src/index.js +++ b/src/index.js @@ -118,7 +118,7 @@ export default class PlayPeer { this.#triggerEvent("error", "Connection attempt to singalling server timed out."); this.destroy(); reject(new Error("Connection attempt to signalling server timed out.")); - }, 2 * 1000); + }, 3 * 1000); this.#peer.on('open', () => { this.#triggerEvent("status", "Connected to signalling server!");