public class SyncSocketServer
extends org.java_websocket.server.WebSocketServer
Constructor and Description |
---|
SyncSocketServer(int port,
String key,
Consumer<String> syncCallback) |
Modifier and Type | Method and Description |
---|---|
void |
onClose(org.java_websocket.WebSocket webSocket,
int i,
String s,
boolean b) |
void |
onError(org.java_websocket.WebSocket webSocket,
Exception e) |
void |
onMessage(org.java_websocket.WebSocket webSocket,
String payload) |
void |
onOpen(org.java_websocket.WebSocket webSocket,
org.java_websocket.handshake.ClientHandshake clientHandshake) |
void |
onStart() |
addConnection, allocateBuffers, broadcast, broadcast, broadcast, broadcast, broadcast, broadcast, createBuffer, getAddress, getConnections, getDraft, getLocalSocketAddress, getMaxPendingConnections, getPort, getRemoteSocketAddress, getWebSocketFactory, onCloseInitiated, onClosing, onConnect, onMessage, onWebsocketClose, onWebsocketCloseInitiated, onWebsocketClosing, onWebsocketError, onWebsocketMessage, onWebsocketMessage, onWebsocketOpen, onWriteDemand, queue, releaseBuffers, removeConnection, run, setMaxPendingConnections, setWebSocketFactory, start, stop, stop
getConnectionLostTimeout, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimer
public void onOpen(org.java_websocket.WebSocket webSocket, org.java_websocket.handshake.ClientHandshake clientHandshake)
onOpen
in class org.java_websocket.server.WebSocketServer
public void onClose(org.java_websocket.WebSocket webSocket, int i, String s, boolean b)
onClose
in class org.java_websocket.server.WebSocketServer
public void onMessage(org.java_websocket.WebSocket webSocket, String payload)
onMessage
in class org.java_websocket.server.WebSocketServer
public void onError(org.java_websocket.WebSocket webSocket, Exception e)
onError
in class org.java_websocket.server.WebSocketServer
public void onStart()
onStart
in class org.java_websocket.server.WebSocketServer
Copyright © 2021. All rights reserved.