Package com.neovisionaries.ws.client
Interface PayloadGenerator
- All Known Implementing Classes:
CounterPayloadGenerator
public interface PayloadGenerator
Payload generator.
- Since:
- 1.20
-
Method Summary
-
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.
-