| Package | Description |
|---|---|
| io.javalin | |
| io.javalin.apibuilder | |
| io.javalin.core |
| Modifier and Type | Method and Description |
|---|---|
Javalin |
Javalin.ws(String path,
Consumer<WsConfig> ws)
Adds a WebSocket handler on the specified path.
|
Javalin |
Javalin.ws(String path,
Consumer<WsConfig> ws,
RouteRole... roles)
Adds a WebSocket handler on the specified path with the specified roles.
|
Javalin |
Javalin.wsAfter(Consumer<WsConfig> wsConfig)
Adds a WebSocket after handler for all routes in the instance.
|
Javalin |
Javalin.wsAfter(String path,
Consumer<WsConfig> wsConfig)
Adds a WebSocket after handler for the specified path to the instance.
|
Javalin |
Javalin.wsBefore(Consumer<WsConfig> wsConfig)
Adds a WebSocket before handler for all routes in the instance.
|
Javalin |
Javalin.wsBefore(String path,
Consumer<WsConfig> wsConfig)
Adds a WebSocket before handler for the specified path to the instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ApiBuilder.ws(Consumer<WsConfig> ws)
Adds a WebSocket handler on the current path.
|
static void |
ApiBuilder.ws(Consumer<WsConfig> ws,
RouteRole... roles)
Adds a WebSocket handler with the given roles for the current path.
|
static void |
ApiBuilder.ws(String path,
Consumer<WsConfig> ws)
Adds a WebSocket handler on the specified path.
|
static void |
ApiBuilder.ws(String path,
Consumer<WsConfig> ws,
RouteRole... roles)
Adds a WebSocket handler with the given roles for the specified path.
|
Javalin |
ApiBuilder.wsAfter(Consumer<WsConfig> wsConfig)
Adds a WebSocket after handler for the current path to the
Javalin instance. |
Javalin |
ApiBuilder.wsAfter(String path,
Consumer<WsConfig> wsConfig)
Adds a WebSocket after handler for the specified path to the
Javalin instance. |
Javalin |
ApiBuilder.wsBefore(Consumer<WsConfig> wsConfig)
Adds a WebSocket before handler for the current path to the
Javalin instance. |
Javalin |
ApiBuilder.wsBefore(String path,
Consumer<WsConfig> wsConfig)
Adds a WebSocket before handler for the specified path to the
Javalin instance. |
| Modifier and Type | Field and Description |
|---|---|
WsConfig |
JavalinConfig.Inner.wsLogger |
| Modifier and Type | Method and Description |
|---|---|
void |
JavalinConfig.wsLogger(Consumer<WsConfig> ws) |
Copyright © 2021. All rights reserved.