1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-20 04:42:57 +00:00

Added support for retrieving a reconnection url when socket connection is lost

This commit is contained in:
JKorf
2022-07-17 12:49:13 +02:00
parent 7c8cbfa4e2
commit 465e9f04f4
6 changed files with 71 additions and 24 deletions
@@ -1,4 +1,5 @@
using CryptoExchange.Net.Objects;
using CryptoExchange.Net.Sockets;
using System;
using System.Security.Authentication;
using System.Text;
@@ -35,6 +36,10 @@ namespace CryptoExchange.Net.Interfaces
/// Websocket has reconnected to the server
/// </summary>
event Action OnReconnected;
/// <summary>
/// Get reconntion url
/// </summary>
Func<Task<Uri?>> GetReconnectionUrl { get; set; }
/// <summary>
/// Unique id for this socket