/// <summary> /// Closes connection to Alpaca streaming API. /// </summary> /// <returns>Waitable task object for handling action completion in asyncronious mode.</returns> public Task DisconnectAsync() { return(Task.Run(() => _webSocket.Close())); }
/// <summary> /// Closes connection to Alpaca streaming API. /// </summary> public void Disconnect() { _webSocket.Close(); }