Package | Description |
---|---|
io.muserver |
This package contains the main API of mu-server, for example the server builders, request and response objects.
|
Modifier and Type | Method and Description |
---|---|
static WebSocketHandlerBuilder |
WebSocketHandlerBuilder.webSocketHandler()
Creates a new handler builder.
|
static WebSocketHandlerBuilder |
WebSocketHandlerBuilder.webSocketHandler(MuWebSocketFactory factory)
Creates a new handler builder with the given factory.
|
WebSocketHandlerBuilder |
WebSocketHandlerBuilder.withIdleReadTimeout(long duration,
TimeUnit unit)
Sets the idle timeout.
|
WebSocketHandlerBuilder |
WebSocketHandlerBuilder.withMaxFramePayloadLength(int maxFramePayloadLength)
Sets the maximum size in bytes that a frame can be.
|
WebSocketHandlerBuilder |
WebSocketHandlerBuilder.withPath(String path)
Sets the path to listen on for this handler.
|
WebSocketHandlerBuilder |
WebSocketHandlerBuilder.withPingSentAfterNoWritesFor(int duration,
TimeUnit unit)
Sets the amount of time to wait before sending a ping message if no messages having been sent.
|
WebSocketHandlerBuilder |
WebSocketHandlerBuilder.withWebSocketFactory(MuWebSocketFactory factory)
Sets the factory that decides whether to create a websocket connection for a request.
|
Copyright © 2017–2021. All rights reserved.