public interface WebSocketMessage extends Value
WebSocket.OnMessage callback. Message is a subclass.| Modifier and Type | Method and Description |
|---|---|
static WebSocketMessage |
create(Context ctx,
byte[] bytes)
Creates a websocket message.
|
static WebSocketMessage |
create(Context ctx,
String message)
Creates a websocket message.
|
<T> T |
to(Type type)
Convert this value to the given type.
|
array, booleanValue, booleanValue, byteValue, byteValue, create, create, doubleValue, doubleValue, floatValue, floatValue, hash, intValue, intValue, isArray, isMissing, isObject, isSingle, longValue, longValue, missing, name, to, toEnum, toEnum, toList, toList, toMap, toMultimap, toOptional, toOptional, toSet, toSet, value, value, value, value, valueOrNull@Nonnull <T> T to(@Nonnull Type type)
T - Element type.type - Type to convert.@Nonnull static WebSocketMessage create(@Nonnull Context ctx, @Nonnull byte[] bytes)
ctx - HTTP context.bytes - Text message as byte array.Copyright © 2020. All rights reserved.