Console.WriteLine($"TCP protocol session with Id '{Id}' connected to remote address '{(Socket.RemoteEndPointasIPEndPoint)?.Address}' and port {(Socket.RemoteEndPointasIPEndPoint)?.Port}");
// Send invite notification
SimpleNotifynotify=SimpleNotify.Default;
notify.Notification="Hello from Simple protocol server! Please send a message or '!' to disconnect the client!";
Sender.Send(notify);
}
protectedoverridevoidOnDisconnected()
{
Console.WriteLine($"TCP protocol session with Id '{Id}' disconnected");