Package cool.scx.web.websocket
Class WebSocketRouter
java.lang.Object
cool.scx.web.websocket.WebSocketRouter
- All Implemented Interfaces:
io.vertx.core.Handler<io.vertx.core.http.ServerWebSocket>
public final class WebSocketRouter
extends Object
implements io.vertx.core.Handler<io.vertx.core.http.ServerWebSocket>
a
- Version:
- 1.11.8
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRoute(WebSocketRoute scxRoute) 添加一个路由avoidhandle(io.vertx.core.http.ServerWebSocket serverWebSocket)
-
Constructor Details
-
WebSocketRouter
public WebSocketRouter()
-
-
Method Details
-
addRoute
添加一个路由- Parameters:
scxRoute- s- Returns:
- s
-
getRoutes
a- Returns:
- a
-
handle
public void handle(io.vertx.core.http.ServerWebSocket serverWebSocket) - Specified by:
handlein interfaceio.vertx.core.Handler<io.vertx.core.http.ServerWebSocket>
-