public class DemoWsHandshakeProcessor extends WsHandshakeProcessor
| Constructor and Description |
|---|
DemoWsHandshakeProcessor() |
| Modifier and Type | Method and Description |
|---|---|
ImPacket |
handshake(ImPacket packet,
org.tio.core.ChannelContext channelContext)
WS握手方法,返回Null则业务层不同意握手,断开连接!
|
isProtocol, name, onAfterHandshakedpublic ImPacket handshake(ImPacket packet, org.tio.core.ChannelContext channelContext) throws Exception
handshake in interface HandshakeProcessorIntfhandshake in class WsHandshakeProcessorExceptionCopyright © 2018. All rights reserved.