public void onConnect(WebSocketEvent event) {
logger.trace("calling from " + this.getClass().getName() + " : " + "onConnect");
sessionWrapper.setWebSocket(event.webSocket());
try {
event.webSocket().write(new SocketIOPacketImpl(PacketType.CONNECT).toString());
} catch (IOException e) {
e.printStackTrace();
sessionWrapper.getSession().onShutdown();
}