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, onAfterHandshaked
public ImPacket handshake(ImPacket packet, org.tio.core.ChannelContext channelContext) throws Exception
handshake
in interface HandshakeProcessorIntf
handshake
in class WsHandshakeProcessor
Exception
Copyright © 2018. All rights reserved.