Class WebSocketClientNetty
- java.lang.Object
-
- be.yildizgames.module.network.client.Client
-
- be.yildizgames.module.network.netty.client.ClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
-
- be.yildizgames.module.network.netty.client.WebSocketClientNetty
-
- All Implemented Interfaces:
be.yildizgames.module.network.client.ClientCallBack,be.yildizgames.module.network.client.MessageSender,be.yildizgames.module.network.client.NetworkClient
public class WebSocketClientNetty extends ClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description WebSocketClientNetty(io.netty.bootstrap.Bootstrap clientBootstrap)Create a new instance of a client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected io.netty.handler.codec.http.websocketx.TextWebSocketFramebuildMessage(String message)protected voidconnectionComplete()be.yildizgames.module.network.DecoderEncodergetCodec()voidhandShakeComplete()-
Methods inherited from class be.yildizgames.module.network.netty.client.ClientNetty
close, connectImpl, disconnect, sendMessage, sendMessage, setTimeOut
-
-
-
-
Method Detail
-
connectionComplete
protected void connectionComplete()
- Specified by:
connectionCompletein classClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
-
buildMessage
protected io.netty.handler.codec.http.websocketx.TextWebSocketFrame buildMessage(String message)
- Specified by:
buildMessagein classClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
-
getCodec
public be.yildizgames.module.network.DecoderEncoder getCodec()
- Specified by:
getCodecin classClientNetty<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
-
handShakeComplete
public void handShakeComplete()
-
-