public static final class WebSocketEventListener.WebSocketEvent<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebSocketEventListener.WebSocketEvent.TYPE |
Constructor and Description |
---|
WebSocketEvent(T message,
WebSocketEventListener.WebSocketEvent.TYPE type,
WebSocket webSocket) |
Modifier and Type | Method and Description |
---|---|
T |
message()
The received message if the message was a String.
|
String |
toString() |
WebSocketEventListener.WebSocketEvent.TYPE |
type()
The type of the last Websocket's event.
|
WebSocket |
webSocket()
The WebSocket.
|
public WebSocketEvent(T message, WebSocketEventListener.WebSocketEvent.TYPE type, WebSocket webSocket)
public T message()
public WebSocket webSocket()
public WebSocketEventListener.WebSocketEvent.TYPE type()
Copyright © 2016. All rights reserved.