NettyMessageBuffer buffer = new NettyMessageBuffer();
System.out.println("Command No: " + cmdCount);
buffer.writeInt(cmdCount);
// Event tcpEvent = Events.dataOutTcpEvent(buffer);
// getSession().onEvent(tcpEvent);
NetworkEvent udpEvent = null;
if(isDefaultProtocol){
udpEvent = Events.networkEvent(buffer, DeliveryGuarantyOptions.FAST);
}else{
udpEvent = Events.networkEvent(cmdCount);// for websocket protocol.
}