gets the max upgrade message size exponent of the given message
message
static int getMaxUpgradeMessageSizeExponent(Uint8List message) { return ((message[1] & 0xFF) >> 4) + 25; }