/// <summary> /// Sending data from a bitstream to server using priorities, reliability, and a channel /// </summary> public byte SendToServer(BitStream stream, PacketPriority priority = PacketPriority.IMMEDIATE_PRIORITY, PacketReliability reliability = PacketReliability.RELIABLE, byte channel = 0) { if (!peer.IsActive()) { return(0); } return(peer.SendToServer(stream, priority, reliability, channel)); }