Use a Promise<WebSocket> for websocket client