public void Disconnect(string reasonKey) { conn.Send(Packets.Server_DisconnectReason, reasonKey); conn.Close(); Server.OnDisconnected(conn); }
public void SendPacket(Packets packet, byte[] data, bool reliable = true) { conn.Send(packet, data, reliable); }