sharp-chat/SharpChat.Common/Protocol/IConnection.cs
2022-08-30 17:05:29 +02:00

16 lines
386 B
C#

using SharpChat.Sessions;
using System;
using System.Net;
namespace SharpChat.Protocol {
public interface IConnection {
string ConnectionId { get; }
IPAddress RemoteAddress { get; }
bool IsAvailable { get; }
bool IsSecure { get; }
DateTimeOffset LastPing { get; set; }
ISession Session { get; set; }
void Close();
}
}