working with remote websocket