Skip to content

Commit

Permalink
improvement: Make peer close console error a warning instead, as it c…
Browse files Browse the repository at this point in the history
…an be intentional
  • Loading branch information
therealPaulPlay committed Jan 29, 2025
1 parent d693fd3 commit 4d4d021
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.1.9",
"version": "1.2.0",
"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 @@ -157,7 +157,7 @@ export default class PlayPeer {

this.#peer.on('close', () => {
this.#triggerEvent("status", "Peer permanently closed.");
console.error(ERROR_PREFIX + "Connection permanently closed.");
console.warn(WARNING_PREFIX + "Connection permanently closed.");
this.destroy();
});
}
Expand Down

0 comments on commit 4d4d021

Please sign in to comment.