Establish connection on websocket