- All Superinterfaces:
Value
Websocket message generated from a
WebSocket.OnMessage
callback. Message is a subclass.- Since:
- 2.2.0
- Author:
- edgar
-
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketMessage
Creates a websocket message.static WebSocketMessage
Creates a websocket message.<T> T
Convert this value to the given type.Methods inherited from interface io.jooby.Value
booleanValue, booleanValue, byteValue, byteValue, doubleValue, doubleValue, floatValue, floatValue, intValue, intValue, isArray, isMissing, isObject, isPresent, isSingle, longValue, longValue, name, to, toEnum, toEnum, toList, toList, toMap, toMultimap, toNullable, toOptional, toOptional, toSet, toSet, value, value, value, valueOrNull
-
Method Details
-
to
Convert this value to the given type. Support values are single-value, array-value and object-value. Object-value can be converted to a JavaBean type.- Type Parameters:
T
- Element type.- Parameters:
type
- Type to convert.- Returns:
- Instance of the type.
-
create
Creates a websocket message.- Parameters:
ctx
- HTTP context.bytes
- Text message as byte array.- Returns:
- A websocket message.
-
create
Creates a websocket message.- Parameters:
ctx
- HTTP context.message
- Text message.- Returns:
- A websocket message.
-