public class WebSocketServer extends HttpServer
acceptor, cleanup, closeSessions, pinAcceptors, port, selectors, useWorkers, workers| Constructor and Description |
|---|
WebSocketServer(WebSocketServerConfig config,
java.lang.Object... routers) |
| Modifier and Type | Method and Description |
|---|---|
WebSocketSession |
createSession(Socket socket) |
void |
handleMessage(WebSocketSession session,
BinaryMessage message) |
void |
handleMessage(WebSocketSession session,
CloseMessage message) |
void |
handleMessage(WebSocketSession session,
PingMessage message) |
void |
handleMessage(WebSocketSession session,
PongMessage message) |
void |
handleMessage(WebSocketSession session,
TextMessage message) |
void |
handleRequest(Request request,
HttpSession session) |
addRequestHandlers, findHandlerByHost, handleDefaultasyncExecute, getAcceptedSessions, getConnections, getKeepAlive, getQueueAvgBytes, getQueueAvgLength, getQueueMaxBytes, getQueueMaxLength, getRejectedSessions, getRequestsProcessed, getRequestsRejected, getSelectorAvgReady, getSelectorCount, getSelectorMaxReady, getSelectorOperations, getSelectorSessions, getWorkers, getWorkersActive, getWorkersUsed, incRequestsProcessed, incRequestsRejected, reconfigure, register, register, registerShutdownHook, reset, start, stoppublic WebSocketServer(WebSocketServerConfig config, java.lang.Object... routers) throws java.io.IOException
java.io.IOExceptionpublic WebSocketSession createSession(Socket socket)
createSession in class HttpServerpublic void handleRequest(Request request, HttpSession session) throws java.io.IOException
handleRequest in class HttpServerjava.io.IOExceptionpublic void handleMessage(WebSocketSession session, PingMessage message) throws java.io.IOException
java.io.IOExceptionpublic void handleMessage(WebSocketSession session, PongMessage message) throws java.io.IOException
java.io.IOExceptionpublic void handleMessage(WebSocketSession session, TextMessage message) throws java.io.IOException
java.io.IOExceptionpublic void handleMessage(WebSocketSession session, BinaryMessage message) throws java.io.IOException
java.io.IOExceptionpublic void handleMessage(WebSocketSession session, CloseMessage message) throws java.io.IOException
java.io.IOException