Skip to content

Commit

Permalink
fix(wsError): add general handler
Browse files Browse the repository at this point in the history
  • Loading branch information
wzr1337 committed Mar 19, 2018
1 parent c014a7b commit c2c51d9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions dist/web.socket.server.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/web.socket.server.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"license": "MIT",
"dependencies": {
"@rsi/core": "https://github.com/wzr1337/rsi.core#0.2.0",
"@rsi/core": "https://github.com/wzr1337/rsi.core#develop",
"body-parser": "^1.18.2",
"compression": "^1.7.1",
"cors": "^2.8.4",
Expand Down Expand Up @@ -53,4 +53,4 @@
"tslint": "^5.9.1",
"typescript": "^2.7.2"
}
}
}
1 change: 1 addition & 0 deletions src/web.socket.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class RsiWebSocket {
this.logger = RsiLogger.getInstance().getLogger("RsiWebSocket");
this.logger.transports.console.level = "silly"; // for debug
this._id = uuid.v4();
this.ws.onerror = (err) => this.logger.error("WebSocket Error", err);
}

get id(): string {
Expand Down

0 comments on commit c2c51d9

Please sign in to comment.