Uses a WebSocket to access the specified API