Add missing onerror listener for WebSockets
Merge pull request #169 from lpinca/add/onerror-listener

Add missing onerror listener for WebSockets