WIP: Ws client code

Is there not an `onerror` handler you should also register here?