public final class EngineIoServer extends Emitter
Modifier and Type | Class and Description |
---|---|
static interface |
EngineIoServer.HandshakeInterceptor |
Emitter.Listener
Constructor and Description |
---|
EngineIoServer()
Create instance of server with default options.
|
EngineIoServer(EngineIoServerOptions options)
Create instance of server with specified options.
|
Modifier and Type | Method and Description |
---|---|
EngineIoServerOptions |
getOptions()
Gets the configured options for this server instance.
|
ScheduledExecutorService |
getScheduledExecutor()
Gets the underlying executor used for ping timeout handling.
|
void |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle an HTTP request.
|
void |
handleWebSocket(EngineIoWebSocket webSocket)
Handle a WebSocket request.
|
void |
shutdown()
Releases resources such as threads and clients.
|
public EngineIoServer()
public EngineIoServer(EngineIoServerOptions options)
options
- Server options.public EngineIoServerOptions getOptions()
public ScheduledExecutorService getScheduledExecutor()
public void shutdown()
public void handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- The HTTP request object.response
- The HTTP response object.IOException
- On IO error.public void handleWebSocket(EngineIoWebSocket webSocket)
webSocket
- The WebSocket connection object.Copyright © 2022. All rights reserved.