Package | Description |
---|---|
org.voovan.http.server | |
org.voovan.http.websocket |
Modifier and Type | Method and Description |
---|---|
WebSocketFrame |
WebServerHandler.disposeWebSocket(IoSession session,
WebSocketFrame webSocketFrame)
WebSocket 帧处理
|
WebSocketFrame |
WebSocketDispatcher.fireOpenEvent(IoSession session,
HttpRequest request)
触发 WebSocket Open 事件
|
WebSocketFrame |
WebSocketDispatcher.firePingEvent(IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
触发 WebSocket Ping 事件
|
WebSocketFrame |
WebSocketDispatcher.fireReceivedEvent(IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
触发 WebSocket Received 事件
|
WebSocketFrame |
WebSocketDispatcher.process(WebSocketDispatcher.WebSocketEvent event,
IoSession session,
HttpRequest request,
ByteBuffer byteBuffer)
路由处理函数
|
Modifier and Type | Method and Description |
---|---|
WebSocketFrame |
WebServerHandler.disposeWebSocket(IoSession session,
WebSocketFrame webSocketFrame)
WebSocket 帧处理
|
Modifier and Type | Method and Description |
---|---|
static WebSocketFrame |
WebSocketFrame.newInstance(boolean fin,
WebSocketFrame.Opcode opcode,
boolean mask,
ByteBuffer binary)
构建新的实例
|
static WebSocketFrame |
WebSocketFrame.newInstance(boolean fin,
WebSocketFrame.Opcode opcode,
boolean mask,
ByteBuffer binary,
int errorCode)
构建新的实例
|
static WebSocketFrame |
WebSocketFrame.parse(ByteBuffer byteBuffer)
解析WebSocket报文
|
Modifier and Type | Method and Description |
---|---|
protected void |
WebSocketSession.send(WebSocketFrame webSocketFrame)
发送 websocket 帧
|
Copyright © 2020 Voovan. All rights reserved.