Package | Description |
---|---|
org.voovan.http.client | |
org.voovan.http.extend.engineio | |
org.voovan.http.server | |
org.voovan.http.websocket | |
org.voovan.http.websocket.filter |
Constructor and Description |
---|
WebSocketHandler(HttpClient httpClient,
WebSocketSession webSocketSession,
WebSocketRouter webSocketRouter)
构造函数
|
Modifier and Type | Method and Description |
---|---|
protected WebSocketSession |
EIOSession.getWebSocketSession() |
Modifier and Type | Method and Description |
---|---|
void |
EIODispatcher.onClose(WebSocketSession session) |
Object |
EIODispatcher.onOpen(WebSocketSession session) |
Object |
EIODispatcher.onRecived(WebSocketSession session,
Object obj) |
void |
EIODispatcher.onSent(WebSocketSession session,
Object obj) |
void |
EIOSession.setWebSocketSession(WebSocketSession webSocketSession) |
void |
EIOHandler.setWebSocketSession(WebSocketSession webSocketSession) |
Constructor and Description |
---|
EIOSession(WebSocketSession webSocketSession,
EIOHandler eioHandler) |
Modifier and Type | Method and Description |
---|---|
WebSocketSession |
WebSocketDispatcher.disposeSession(HttpRequest request,
WebSocketRouter webSocketRouter)
处理 WebSocketSession
|
Modifier and Type | Method and Description |
---|---|
static Object |
WebSocketDispatcher.filterDecoder(WebSocketSession session,
Chain<WebSocketFilter> wsFilterChain,
Object result)
过滤器解密函数,接收事件(onRecive)前调用
onRecive事件前调用
|
static Object |
WebSocketDispatcher.filterDecoder(WebSocketSession session,
Object result)
过滤器解密函数,接收事件(onRecive)前调用
onRecive事件前调用
|
static Object |
WebSocketDispatcher.filterEncoder(WebSocketSession session,
Chain<WebSocketFilter> wsFilterChain,
Object result)
使用过滤器编码结果
|
static Object |
WebSocketDispatcher.filterEncoder(WebSocketSession session,
Object result)
过滤器解密函数,接收事件(onRecive)前调用
onRecive事件前调用
|
Modifier and Type | Method and Description |
---|---|
Object |
WebSocketFilter.decode(WebSocketSession session,
Object object)
过滤器解密函数,接收事件(onRecive)前调用
如果任何一个过滤器返回的是null, 则它后面的过滤器不会被执行, 且不会执行 onRevcive
如果最后一个过滤器如果返回 null, 则不会进行路由处理
|
Object |
WebSocketFilter.encode(WebSocketSession session,
Object object)
过滤器加密函数,发送事件(onSend)后调用
send事件后调用
|
abstract void |
WebSocketRouter.onClose(WebSocketSession session)
websocket 关闭
|
abstract Object |
WebSocketRouter.onOpen(WebSocketSession session)
websocket 连接打开
|
abstract Object |
WebSocketRouter.onRecived(WebSocketSession session,
Object obj)
websocket 收到消息
|
abstract void |
WebSocketRouter.onSent(WebSocketSession session,
Object obj)
websocket 消息发送完成
|
Modifier and Type | Method and Description |
---|---|
Object |
StringFilter.decode(WebSocketSession session,
Object object) |
Object |
StringFilter.encode(WebSocketSession session,
Object object) |
Copyright © 2020 Voovan. All rights reserved.