示例#1
0
文件: SockClient.cs 项目: wiangf/Lean
 /// <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()));
 }
示例#2
0
 /// <summary>
 /// Closes connection to Alpaca streaming API.
 /// </summary>
 public void Disconnect()
 {
     _webSocket.Close();
 }