public void SendInputMessage(InputMessage msg)
 {
     using (PooledBitStream stream = PooledBitStream.Get())
     {
         using (PooledBitWriter writer = PooledBitWriter.Get(stream))
         {
             writer.WriteInt32(msg.messageID);
             writer.WriteInt32(msg.timeCreated);
             writer.WriteUInt32(msg.playerId);
             writer.WriteShortArray(msg.keycode.ToArray());
             CustomMessagingManager.SendNamedMessage("Input", this.ServerClientId, stream, "customChannel");
         }
     }
 }