@hocuspocus/server
Advanced tools
Comparing version 1.0.0-alpha.105 to 1.0.0-alpha.106
@@ -53,2 +53,9 @@ /// <reference types="node" /> | ||
/** | ||
* Handle a ws instance error, which is required to prevent | ||
* the server from crashing when one happens | ||
* See https://github.com/websockets/ws/issues/1777#issuecomment-660803472 | ||
* @private | ||
*/ | ||
private handleError; | ||
/** | ||
* Get the underlying connection instance | ||
@@ -55,0 +62,0 @@ * @deprecated |
{ | ||
"name": "@hocuspocus/server", | ||
"description": "plug & play collaboration backend", | ||
"version": "1.0.0-alpha.105", | ||
"version": "1.0.0-alpha.106", | ||
"homepage": "https://hocuspocus.dev", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6865794352a68372a54c579040513e45aac422d1" | ||
"gitHead": "6074a6cb832b40bc579f28db2823ba5723887312" | ||
} |
@@ -71,2 +71,3 @@ import AsyncLock from 'async-lock' | ||
this.webSocket.on('pong', () => { this.pongReceived = true }) | ||
this.webSocket.on('error', this.handleError.bind(this)) | ||
@@ -180,2 +181,13 @@ this.sendCurrentAwareness() | ||
/** | ||
* Handle a ws instance error, which is required to prevent | ||
* the server from crashing when one happens | ||
* See https://github.com/websockets/ws/issues/1777#issuecomment-660803472 | ||
* @private | ||
*/ | ||
private handleError(error: any): void { | ||
this.logger.log('Error emitted from webSocket instance:') | ||
this.logger.log(error) | ||
} | ||
/** | ||
* Get the underlying connection instance | ||
@@ -182,0 +194,0 @@ * @deprecated |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
629562
126
7651
2