first websocket setup