make use of timeout setting
implement outbound websocket connection