Add `error` event listener for issue #93

After a further analysis i noticed that the issue was indeed caused by a missing listener.
This will probably need a test but i'm not sure how to create one specifically for the WebSocket transformer.

I will add more info in the issue page in a hour or two.