Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
pass socket errors up to the client.
Browse files Browse the repository at this point in the history
  • Loading branch information
jed committed Aug 10, 2012
1 parent 86be7d4 commit f7eef44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions browserver.js
Expand Up @@ -126,6 +126,7 @@ Client.prototype = new events.EventEmitter
Client.prototype.attachSocket = function(socket) {
socket.on("message", this.handleMessage.bind(this))
socket.on("close", this.handleClose.bind(this))
socket.on("error", this.emit.bind(this, "error"))

this.socket = socket

Expand Down

0 comments on commit f7eef44

Please sign in to comment.