Package | Description |
---|---|
org.voovan.http.client | |
org.voovan.http.extend.engineio | |
org.voovan.http.extend.socketio | |
org.voovan.http.server | |
org.voovan.http.server.context | |
org.voovan.http.websocket |
Modifier and Type | Method and Description |
---|---|
void |
HttpClient.webSocket(String location,
WebSocketRouter webSocketRouter)
连接 Websocket
|
Constructor and Description |
---|
WebSocketHandler(HttpClient httpClient,
WebSocketSession webSocketSession,
WebSocketRouter webSocketRouter)
构造函数
|
Modifier and Type | Class and Description |
---|---|
class |
EIODispatcher
Engine IO 消息分发
|
Modifier and Type | Class and Description |
---|---|
class |
SIODispatcher
Socket IO 消息分发类
|
Modifier and Type | Method and Description |
---|---|
org.voovan.http.server.RouterWrap<WebSocketRouter> |
WebSocketDispatcher.findRouter(HttpRequest request)
获取路由处理对象和注册路由
|
Map<String,org.voovan.http.server.RouterWrap<WebSocketRouter>> |
WebSocketDispatcher.getRouters()
获取 WebSocket 的路由配置
|
Map<String,org.voovan.http.server.RouterWrap<WebSocketRouter>> |
WebServer.getWebSocketRouters()
获取 WebSocket 的路由配置
|
Modifier and Type | Method and Description |
---|---|
void |
WebSocketDispatcher.addRouteHandler(String routePath,
WebSocketRouter handler)
增加一个路由规则
|
WebSocketSession |
WebSocketDispatcher.disposeSession(HttpRequest request,
WebSocketRouter webSocketRouter)
处理 WebSocketSession
|
void |
HttpModule.socket(String routeRegexPath,
WebSocketRouter router)
WebSocket 服务
|
WebServer |
WebServer.socket(String routeRegexPath,
WebSocketRouter router)
WebSocket 服务
|
Modifier and Type | Method and Description |
---|---|
WebSocketRouter |
HttpRouterConfig.getWebSocketRouterInstance()
获取WebSocketRouter路由处理实例
|
Modifier and Type | Method and Description |
---|---|
WebSocketRouter |
WebSocketRouter.addFilterChain(WebSocketFilter webSocketFilter) |
WebSocketRouter |
WebSocketRouter.clearFilterChain() |
WebSocketRouter |
WebSocketSession.getWebSocketRouter()
获取 WebSocket 路由处理对象
|
WebSocketRouter |
WebSocketRouter.removeFilterChain(WebSocketFilter webSocketFilter) |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketSession.setWebSocketRouter(WebSocketRouter webSocketRouter)
设置获取WebSocket 路由处理对象
|
Constructor and Description |
---|
WebSocketSession(IoSession socketSession,
WebSocketRouter webSocketRouter,
WebSocketType webSocketType)
构造函数
|
Copyright © 2020 Voovan. All rights reserved.