public class EIODispatcher extends WebSocketRouter
webSocketFilterChain
Constructor and Description |
---|
EIODispatcher(Config config) |
Modifier and Type | Method and Description |
---|---|
EIODispatcher |
on(String Event,
EIOHandler eioHandler) |
void |
onClose(WebSocketSession session)
websocket 关闭
|
Object |
onOpen(WebSocketSession session)
websocket 连接打开
|
Object |
onRecived(WebSocketSession session,
Object obj)
websocket 收到消息
|
void |
onSent(WebSocketSession session,
Object obj)
websocket 消息发送完成
|
addFilterChain, clearFilterChain, getWebSocketFilterChain, removeFilterChain
public EIODispatcher(Config config)
public EIODispatcher on(String Event, EIOHandler eioHandler)
public Object onOpen(WebSocketSession session)
WebSocketRouter
onOpen
in class WebSocketRouter
session
- WebSocket 会话public Object onRecived(WebSocketSession session, Object obj)
WebSocketRouter
onRecived
in class WebSocketRouter
session
- WebSocket 会话obj
- 收到的缓冲数据public void onSent(WebSocketSession session, Object obj)
WebSocketRouter
onSent
in class WebSocketRouter
session
- WebSocket 会话obj
- 发送的消息public void onClose(WebSocketSession session)
WebSocketRouter
onClose
in class WebSocketRouter
session
- WebSocket 会话Copyright © 2020 Voovan. All rights reserved.