Skip to content

Commit

Permalink
Handle WS client errors, refs nodejs/node#13204
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Mar 13, 2018
1 parent 44d31b8 commit a64aa90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ exports.handleConnection = (server, socket) ->
socket.on 'close', ->
server.listeners = server.listeners.filter (l) ->
l isnt notify
socket.on 'error', ->
server.listeners = server.listeners.filter (l) ->
l isnt notify

# Register listener
server.listeners.push notify
Expand Down

0 comments on commit a64aa90

Please sign in to comment.