1
0
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:
JKorf
2018-12-17 11:08:03 +01:00
parent d7600b5495
commit 56da39b595
4 changed files with 13 additions and 0 deletions
+6
View File
@@ -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);