A WebSocket frame that represents either text or binary data.
A WebSocket message is composed of one or more WebSocket frames.
If there is a just a single frame in the message then a single text or binary frame should be created with final = true.
If there are more than one frames in the message, then the first frame should be a text or binary frame with final = false, followed by one or more continuation frames. The last continuation frame should have final = true.
AnythingObjectWebSocketFrameBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
WebSocketFrame(WebSocketFrame unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
binaryData | shared default Buffer binaryData()@return the data of the frame |
isBinary | shared default Boolean isBinary()@return true if it's a binary frame |
isContinuation | shared default Boolean isContinuation()@return true if it's a continuation frame |
isFinal | shared default Boolean isFinal()@return true if this is the final frame. |
isText | shared default Boolean isText()@return true if it's a text frame |
textData | shared default String textData()@return the content of this frame as a UTF-8 string and returns the converted string. Only use this for text frames. |
| Inherited Methods |
Methods inherited from: Objectequals |