websocket to appserver connection process almost