mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-16 19:03:01 +00:00
Websocket connection performance improvements, Added multiple options, SymbolOrderBook improvements
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using CryptoExchange.Net.Objects;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CryptoExchange.Net.Sockets
|
||||
@@ -91,5 +92,23 @@ namespace CryptoExchange.Net.Sockets
|
||||
{
|
||||
return connection.Socket.CloseAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unsubscribe a subscription
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
internal async Task UnsubscribeAsync()
|
||||
{
|
||||
await connection.UnsubscribeAsync(subscription).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resubscribe this subscription
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
internal async Task<CallResult<bool>> ResubscribeAsync()
|
||||
{
|
||||
return await connection.ResubscribeAsync(subscription).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user