Proposal: add onError callback

support for onError if user implements WebsocketListenerExt for
the listener.

pls. ignore my changes in pom.xml - I needed them for local deployment