public override Session CreateSession(Peer peer, Cookie cookie) { OnConnect?.Invoke(); return Session; } }