added simple websocket connection
the host address can be specified in a url parameter