Interface PayloadGenerator

    • Method Detail

      • generate

          🗕  🗗  🗖
        byte[] generate()
        Generate a payload of a frame.

        Note that the maximum payload length of control frames (e.g. ping frames) is 125 in bytes. Therefore, the length of a byte array returned from this method must not exceed 125 bytes.

        Returns:
        A payload of a frame.