using Impostor.Api.Net.Messages; namespace Impostor.Hazel { public struct NewConnectionEventArgs { /// /// The data received from the client in the handshake. /// This data is yours. Remember to recycle it. /// public readonly IMessageReader HandshakeData; /// /// The to the new client. /// public readonly Connection Connection; public NewConnectionEventArgs(IMessageReader handshakeData, Connection connection) { this.HandshakeData = handshakeData; this.Connection = connection; } } }