socketIOServlet = new BaseSocketIOServlet(socketManager);
ServletRegistration.Dynamic registration = context.addServlet("socket.io", socketIOServlet);
registration.addMapping("/socket.io/*");
registration.setAsyncSupported(true);
registration.setLoadOnStartup(1);
chatManager = new ChatManager(socketManager.of(SocketManager.DEFAULT_NAMESPACE_NAME));
chatManager.setup();
}