public class RoyaleUnitWebSocketServer extends org.java_websocket.server.WebSocketServer implements IRoyaleUnitServer
| Constructor and Description |
|---|
RoyaleUnitWebSocketServer(int port,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException() |
boolean |
isPending() |
void |
onClose(org.java_websocket.WebSocket connection,
int code,
String reason,
boolean remote) |
void |
onError(org.java_websocket.WebSocket connection,
Exception ex) |
void |
onMessage(org.java_websocket.WebSocket connection,
String message) |
void |
onOpen(org.java_websocket.WebSocket connection,
org.java_websocket.handshake.ClientHandshake handshake) |
void |
onStart() |
String |
readNextTokenFromSocket()
Reads tokens from the web socket
|
void |
stop() |
addConnection, allocateBuffers, broadcast, broadcast, broadcast, broadcast, broadcast, broadcast, createBuffer, getAddress, getConnections, getDraft, getLocalSocketAddress, getPort, getRemoteSocketAddress, getWebSocketFactory, onCloseInitiated, onClosing, onConnect, onMessage, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketMessage, onWebsocketOpen, onWriteDemand, queue, releaseBuffers, removeConnection, run, setWebSocketFactory, start, stopgetConnectionLostTimeout, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimeronWebsocketHandshakeReceivedAsClient, onWebsocketHandshakeReceivedAsServer, onWebsocketHandshakeSentAsClient, onWebsocketPing, onWebsocketPongclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstartpublic RoyaleUnitWebSocketServer(int port,
int timeout)
public Exception getException()
getException in interface IRoyaleUnitServerpublic void stop()
throws IOException,
InterruptedException
stop in interface IRoyaleUnitServerstop in class org.java_websocket.server.WebSocketServerIOExceptionInterruptedExceptionpublic void onOpen(org.java_websocket.WebSocket connection,
org.java_websocket.handshake.ClientHandshake handshake)
onOpen in class org.java_websocket.server.WebSocketServerpublic void onClose(org.java_websocket.WebSocket connection,
int code,
String reason,
boolean remote)
onClose in class org.java_websocket.server.WebSocketServerpublic void onMessage(org.java_websocket.WebSocket connection,
String message)
onMessage in class org.java_websocket.server.WebSocketServerpublic void onError(org.java_websocket.WebSocket connection,
Exception ex)
onError in class org.java_websocket.server.WebSocketServerpublic void onStart()
onStart in class org.java_websocket.server.WebSocketServerpublic boolean isPending()
isPending in interface IRoyaleUnitServerpublic String readNextTokenFromSocket() throws IOException
readNextTokenFromSocket in interface IRoyaleUnitServerIOExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.