1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-20 12:53:02 +00:00

Initial v2 changes

This commit is contained in:
Jan Korf
2018-11-22 12:45:36 +01:00
parent c558f25b6c
commit 5c63941f32
13 changed files with 618 additions and 240 deletions
+5 -2
View File
@@ -7,13 +7,15 @@ namespace CryptoExchange.Net.Interfaces
{
public interface IWebsocket: IDisposable
{
void SetEnabledSslProtocols(SslProtocols protocols);
event Action OnClose;
event Action<string> OnMessage;
event Action<Exception> OnError;
event Action OnOpen;
int Id { get; }
bool ShouldReconnect { get; set; }
Func<byte[], string> DataInterpreter { get; set; }
DateTime? DisconnectTime { get; set; }
string Url { get; }
WebSocketState SocketState { get; }
bool IsClosed { get; }
@@ -21,6 +23,7 @@ namespace CryptoExchange.Net.Interfaces
bool PingConnection { get; set; }
TimeSpan PingInterval { get; set; }
void SetEnabledSslProtocols(SslProtocols protocols);
Task<bool> Connect();
void Send(string data);
Task Close();