public class WsServerDecoder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WsServerDecoder.Step |
Constructor and Description |
---|
WsServerDecoder() |
Modifier and Type | Method and Description |
---|---|
static WsRequestPacket |
decode(ByteBuffer buf,
org.tio.core.ChannelContext channelContext) |
static HttpResponse |
updateWebSocketProtocol(HttpRequest request,
org.tio.core.ChannelContext channelContext)
本方法改编自baseio: https://git.oschina.net/generallycloud/baseio
感谢开源作者的付出 |
public static WsRequestPacket decode(ByteBuffer buf, org.tio.core.ChannelContext channelContext) throws org.tio.core.exception.AioDecodeException
org.tio.core.exception.AioDecodeException
public static HttpResponse updateWebSocketProtocol(HttpRequest request, org.tio.core.ChannelContext channelContext)
request
- channelContext
- Copyright © 2018. All rights reserved.