Provides factory for WebSocketFrame
.
- Companion
- class
Value members
Concrete methods
Creates WebSocket frame using supplied attributes.
Creates WebSocket frame using supplied attributes.
- Value Params
- isCompressed
indicates compression
- isFinal
indicates final frame of message
- key
masking key
- length
payload length
- opcode
frame opcode
- payload
input stream to payload
Creates WebSocket frame using supplied attributes.
Creates WebSocket frame using supplied attributes.
- Value Params
- data
unmasked payload data
- isCompressed
indicates compression
- isFinal
indicates final frame of message
- key
masking key
- length
payload length
- opcode
frame opcode
- Note
If there is
Some
masking key, it is used to maskdata
.
Creates WebSocket frame using supplied attributes.
Creates WebSocket frame using supplied attributes.
- Value Params
- data
unmasked payload data
- isCompressed
indicates compression
- isFinal
indicates final frame of message
- key
masking key
- opcode
frame opcode
- Note
If there is
Some
masking key, it is used to maskdata
.