public void OnMessage(ulong clientId, Stream stream)
 {
     try
     {
         using (var reader = PooledBitReader.Get(stream))
         {
             //var bytes = new byte[4];
             //stream.Read(bytes, 4, 0);
             var messageCode = reader.ReadInt32();
             messagingManager.OnNetworkMessage((CommandCode)messageCode, stream);
         }
     }
     catch
     {
         throw;
     }
 }