mirror of
https://github.com/JKorf/CryptoExchange.Net.git
synced 2026-08-19 04:13:02 +00:00
Added reset to base socket to create a new socket when trying to reconnect
This commit is contained in:
@@ -163,6 +163,12 @@ namespace CryptoExchange.Net.Sockets
|
||||
}).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public virtual void Reset()
|
||||
{
|
||||
socket.Dispose();
|
||||
socket = null;
|
||||
}
|
||||
|
||||
public virtual void Send(string data)
|
||||
{
|
||||
socket.Send(data);
|
||||
|
||||
Reference in New Issue
Block a user