* @param continuation {@code true} when this frame is continuation frame, {@code false} otherwise.
* @param fin {@code true} when this frame is last in current partial message batch. Standard (non-continuous)
* frames have this bit set to {@code true}.
*/
public TextFrame(String message, boolean continuation, boolean fin) {
super(Frame.builder().payloadData(encode(new StrictUtf8(), message)).opcode(continuation ? (byte) 0x00 : (byte) 0x01).fin(fin).build(), continuation ? FrameType.TEXT_CONTINUATION : FrameType.TEXT);
this.continuation = continuation;
this.textPayload = message;
}