code: private void updateMessage(byte messageSystemId) throws IOException
      {
          switch (messageSystemId)
          {
              case NetworkMessageSystemId.CONNECTING:
                  updateConnecting();
                  break;
              case NetworkMessageSystemId.CONNECTED:
                  updateConnected();
                  break;
              case NetworkMessageSystemId.PING:
                  ping = (int) pingTimer.elapsed();
                  break;
              case NetworkMessageSystemId.KICKED:
                  kick();
                  break;
              case NetworkMessageSystemId.OTHER_CLIENT_CONNECTED:
                  updateOtherClientConnected();
                  break;
              case NetworkMessageSystemId.OTHER_CLIENT_DISCONNECTED:
                  updateOtherClientDisconnected();
                  break;
              case NetworkMessageSystemId.OTHER_CLIENT_RENAMED:
                  updateOtherClientRenamed();
                  break;
              case NetworkMessageSystemId.USER_MESSAGE:
                  updateUserMessage();
                  break;
              default:
                  break;
          }
      }
docs: Update the message from its id.
  
  @param messageSystemId The message system ID.
  @throws IOException If error when writing data.