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