1
0
mirror of https://github.com/JKorf/CryptoExchange.Net synced 2025-06-08 00:16:27 +00:00
2018-09-07 12:12:56 +02:00

29 lines
732 B
C#

using System;
using System.Security.Authentication;
using System.Threading.Tasks;
using WebSocket4Net;
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;
WebSocketState SocketState { get; }
bool IsClosed { get; }
bool IsOpen { get; }
bool PingConnection { get; set; }
TimeSpan PingInterval { get; set; }
Task<bool> Connect();
void Send(string data);
Task Close();
void SetProxy(string host, int port);
}
}