Skip to content

catch connection errors, pass along error object when catching errors in transport.send#1

Open
dstibrany wants to merge 1 commit intosteerapi:masterfrom
dstibrany:improve-error-handling
Open

catch connection errors, pass along error object when catching errors in transport.send#1
dstibrany wants to merge 1 commit intosteerapi:masterfrom
dstibrany:improve-error-handling

Conversation

@dstibrany
Copy link

Basically,
client.on('error', function (e) { // something went wrong });
was not doing anything. So I added a listener in the WebSocketTransport file.

I also figured it makes send to pass the err object in transport.send

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants