Interface PayloadGenerator


public interface PayloadGenerator
Payload generator.
Since:
1.20
Author:
Takahiko Kawasaki
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Generate a payload of a frame.
  • Method Details

    • 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.