public class NanoWebSocketServer
extends org.java_websocket.server.WebSocketServer
| Modifier and Type | Field and Description |
|---|---|
static String |
PRE_ID |
static String |
PRE_POS |
static String |
PRE_TARGET |
static String |
PRE_VALUE |
static String |
TARGET_ATTACHMENT |
static String |
TARGET_DEPENDENCY |
static String |
TARGET_DIALOG |
static String |
TARGET_INPUTASSIST |
| Constructor and Description |
|---|
NanoWebSocketServer()
constructor
|
NanoWebSocketServer(de.tsl2.nano.core.ISession session,
InetSocketAddress address)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createMessage(String target,
String id,
Object value) |
static String |
getId(String message) |
static de.tsl2.nano.math.vector.Point |
getPosition(String message) |
static String |
getTarget(String message) |
static String |
getValue(String message) |
boolean |
isConnected() |
void |
onClose(org.java_websocket.WebSocket arg0,
int arg1,
String arg2,
boolean arg3) |
void |
onError(org.java_websocket.WebSocket arg0,
Exception arg1) |
void |
onMessage(org.java_websocket.WebSocket conn,
ByteBuffer message) |
void |
onMessage(org.java_websocket.WebSocket conn,
String msg) |
void |
onOpen(org.java_websocket.WebSocket arg0,
org.java_websocket.handshake.ClientHandshake arg1) |
void |
onStart() |
void |
stop() |
addConnection, allocateBuffers, broadcast, broadcast, broadcast, broadcast, broadcast, broadcast, createBuffer, getAddress, getConnections, getDraft, getLocalSocketAddress, getMaxPendingConnections, getPort, getRemoteSocketAddress, getWebSocketFactory, onCloseInitiated, onClosing, onConnect, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketMessage, onWebsocketOpen, onWriteDemand, queue, releaseBuffers, removeConnection, run, setMaxPendingConnections, setWebSocketFactory, start, stopgetConnectionLostTimeout, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimerpublic static final String PRE_TARGET
public static final String PRE_ID
public static final String PRE_POS
public static final String PRE_VALUE
public static final String TARGET_DEPENDENCY
public static final String TARGET_INPUTASSIST
public static final String TARGET_ATTACHMENT
public static final String TARGET_DIALOG
public NanoWebSocketServer()
throws UnknownHostException
UnknownHostExceptionpublic NanoWebSocketServer(de.tsl2.nano.core.ISession session,
InetSocketAddress address)
session - address - public void onClose(org.java_websocket.WebSocket arg0,
int arg1,
String arg2,
boolean arg3)
onClose in class org.java_websocket.server.WebSocketServerpublic void onError(org.java_websocket.WebSocket arg0,
Exception arg1)
onError in class org.java_websocket.server.WebSocketServerpublic void onMessage(org.java_websocket.WebSocket conn,
String msg)
onMessage in class org.java_websocket.server.WebSocketServerpublic void onMessage(org.java_websocket.WebSocket conn,
ByteBuffer message)
onMessage in class org.java_websocket.server.WebSocketServerpublic static de.tsl2.nano.math.vector.Point getPosition(String message)
public void onOpen(org.java_websocket.WebSocket arg0,
org.java_websocket.handshake.ClientHandshake arg1)
onOpen in class org.java_websocket.server.WebSocketServerpublic boolean isConnected()
public void onStart()
onStart in class org.java_websocket.server.WebSocketServerpublic void stop()
throws IOException,
InterruptedException
stop in class org.java_websocket.server.WebSocketServerIOExceptionInterruptedExceptionCopyright © 2012–2020. All rights reserved.