[websocket] choose protocol