Skip to content

Commit

Permalink
fixed bug about socket no in readystate e:1006
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Sep 18, 2019
1 parent 4a6f1a7 commit 17c3ed0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion connectors/connectorRIS.js
Expand Up @@ -49,7 +49,11 @@ export default class ConnectorRIS extends Connector{
this.ws = new WebSocket(this.params.url);

this.pingTimer = setInterval(() => {
this.ws.ping(() => {})
try {
this.ws.ping(() => {});
} catch (e) {
// Nothing to do here
}
}, 5000);

this.ws.on('message', this._message);
Expand Down

0 comments on commit 17c3ed0

Please sign in to comment.