List of usage examples for io.netty.handler.codec.http.websocketx WebSocketHandshakeException WebSocketHandshakeException
public WebSocketHandshakeException(String s)
From source file:io.vertx.core.http.impl.WebSocketHandshakeInboundHandler.java
License:Open Source License
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { super.channelInactive(ctx); // if still handshaking this means we not got any response back from the server and so need to notify the client // about it as otherwise the client would never been notified. wsHandler.handle(Future/*from w ww . j av a 2 s. c o m*/ .failedFuture(new WebSocketHandshakeException("Connection closed while handshake in process"))); }