Skip to content

Commit

Permalink
fix: slightly increase timeout for connection attempt to signalling s…
Browse files Browse the repository at this point in the history
…erver
  • Loading branch information
therealPaulPlay committed Feb 19, 2025
1 parent 6434667 commit c95eb82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down

0 comments on commit c95eb82

Please sign in to comment.