public class WsServer
extends org.java_websocket.server.WebSocketServer
限定符和类型 | 方法和说明 |
---|---|
void |
onClose(org.java_websocket.WebSocket conn,
int i,
java.lang.String s,
boolean b) |
void |
onError(org.java_websocket.WebSocket conn,
java.lang.Exception ex) |
void |
onMessage(org.java_websocket.WebSocket conn,
java.nio.ByteBuffer data) |
void |
onMessage(org.java_websocket.WebSocket conn,
java.lang.String data) |
void |
onOpen(org.java_websocket.WebSocket conn,
org.java_websocket.handshake.ClientHandshake shake) |
void |
onStart() |
org.java_websocket.handshake.ServerHandshakeBuilder |
onWebsocketHandshakeReceivedAsServer(org.java_websocket.WebSocket conn,
org.java_websocket.drafts.Draft draft,
org.java_websocket.handshake.ClientHandshake request) |
void |
onWebsocketPing(org.java_websocket.WebSocket conn,
org.java_websocket.framing.Framedata f) |
void |
onWebsocketPong(org.java_websocket.WebSocket conn,
org.java_websocket.framing.Framedata f) |
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, setDaemon, setMaxPendingConnections, setWebSocketFactory, start, stop, stop, stop
getConnectionLostTimeout, getReceiveBufferSize, isDaemon, isReuseAddr, isTcpNoDelay, setConnectionLostTimeout, setReceiveBufferSize, setReuseAddr, setTcpNoDelay, startConnectionLostTimer, stopConnectionLostTimer
public WsServer(int port)
public WsServer(java.net.InetAddress address, int port)
public void onStart()
onStart
在类中 org.java_websocket.server.WebSocketServer
public org.java_websocket.handshake.ServerHandshakeBuilder onWebsocketHandshakeReceivedAsServer(org.java_websocket.WebSocket conn, org.java_websocket.drafts.Draft draft, org.java_websocket.handshake.ClientHandshake request) throws org.java_websocket.exceptions.InvalidDataException
onWebsocketHandshakeReceivedAsServer
在接口中 org.java_websocket.WebSocketListener
onWebsocketHandshakeReceivedAsServer
在类中 org.java_websocket.WebSocketAdapter
org.java_websocket.exceptions.InvalidDataException
public void onOpen(org.java_websocket.WebSocket conn, org.java_websocket.handshake.ClientHandshake shake)
onOpen
在类中 org.java_websocket.server.WebSocketServer
public void onClose(org.java_websocket.WebSocket conn, int i, java.lang.String s, boolean b)
onClose
在类中 org.java_websocket.server.WebSocketServer
public void onWebsocketPing(org.java_websocket.WebSocket conn, org.java_websocket.framing.Framedata f)
onWebsocketPing
在接口中 org.java_websocket.WebSocketListener
onWebsocketPing
在类中 org.java_websocket.WebSocketAdapter
public void onWebsocketPong(org.java_websocket.WebSocket conn, org.java_websocket.framing.Framedata f)
onWebsocketPong
在接口中 org.java_websocket.WebSocketListener
onWebsocketPong
在类中 org.java_websocket.WebSocketAdapter
public void onMessage(org.java_websocket.WebSocket conn, java.lang.String data)
onMessage
在类中 org.java_websocket.server.WebSocketServer
public void onMessage(org.java_websocket.WebSocket conn, java.nio.ByteBuffer data)
onMessage
在类中 org.java_websocket.server.WebSocketServer
public void onError(org.java_websocket.WebSocket conn, java.lang.Exception ex)
onError
在类中 org.java_websocket.server.WebSocketServer