private static MessageType decodeMessageType(byte messageType) {
		switch(messageType) {
			case Packet.MESSAGE_TYPE_APPLICATION:
				return MessageType.APPLICATION;
			case Packet.MESSAGE_TYPE_PING:
				return MessageType.PING;
			case Packet.MESSAGE_TYPE_PING_RESPONSE:
				return MessageType.PING_RESPONSE;
			case Packet.MESSAGE_TYPE_CONNECT_REQUEST:
				return MessageType.CONNECT_REQUEST;
			case Packet.MESSAGE_TYPE_CONNECTION_ACCEPTED:
				return MessageType.CONNECTION_ACCEPTED;
			case Packet.MESSAGE_TYPE_CONNECTION_REFUSED:
				return MessageType.CONNECTION_REFUSED;
			case Packet.MESSAGE_TYPE_FORCE_DISCONNECT:
				return MessageType.FORCE_DISCONNECT;
			case Packet.MESSAGE_TYPE_CLIENT_DISCONNECT:
				return MessageType.CLIENT_DISCONNECT;
			default:
				return MessageType.INVALID;
		}
	}