void writePayloadSize(ByteData byteData, int payloadSize) { byteData.setUint16(4, payloadSize, endian_ser); }