public class WebSocketClientNetty extends ClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
Constructor and Description |
---|
WebSocketClientNetty(io.netty.bootstrap.Bootstrap clientBootstrap)
Create a new instance of a client.
|
Modifier and Type | Method and Description |
---|---|
protected io.netty.handler.codec.http.websocketx.TextWebSocketFrame |
buildMessage(String message) |
protected void |
connectionComplete() |
DecoderEncoder |
getCodec() |
void |
handShakeComplete() |
close, connect, disconnect, sendMessage, sendMessage, setTimeOut
public WebSocketClientNetty(io.netty.bootstrap.Bootstrap clientBootstrap)
clientBootstrap
- Netty bootstrap object.protected void connectionComplete()
connectionComplete
in class ClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
protected io.netty.handler.codec.http.websocketx.TextWebSocketFrame buildMessage(String message)
buildMessage
in class ClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
public DecoderEncoder getCodec()
getCodec
in class ClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
public void handShakeComplete()
Copyright © 2014–2017. All rights reserved.