public interface PayloadGenerator
Payload generator.
byte[]
generate()
byte[] generate()
Generate a payload of a frame.
<p> 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. </p>
Copyright © 2021. All Rights Reserved.