Module io.inverno.mod.http.base
Package io.inverno.mod.http.base.ws
Interface WebSocketMessage.Factory
- Enclosing interface:
WebSocketMessage
public static interface WebSocketMessage.Factory
A factory used to create WebSocket message.
It allows to create message that comply with the configuration (e.g. max frame size...). The specified payload data publisher can be rearranged to comply with max frame size by splitting big fragments into smaller frames.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionCreates a binary message with the specified payload data.Creates a binary message with the specified payload data stream.Creates a text message with the specified payload data.Creates a text message with the specified payload data stream.Creates a text message with the specified raw payload data.Creates a text message with the specified raw payload data stream.
-
Method Details
-
text
Creates a text message with the specified payload data.
- Parameters:
value
- payload data- Returns:
- a WebSocket message
-
text
Creates a text message with the specified payload data stream.
- Parameters:
stream
- payload data stream- Returns:
- a WebSocket message
-
text_raw
Creates a text message with the specified raw payload data.
- Parameters:
value
- raw payload data- Returns:
- a WebSocket message
-
text_raw
Creates a text message with the specified raw payload data stream.
- Parameters:
stream
- raw payload data stream- Returns:
- a WebSocket message
-
binary
Creates a binary message with the specified payload data.
- Parameters:
value
- payload data- Returns:
- a WebSocket message
-
binary
Creates a binary message with the specified payload data stream.
- Parameters:
stream
- payload data stream- Returns:
- a WebSocket message
-