Package io.socket.support.servlet

Examples of io.socket.support.servlet.BaseSocketIOServlet


    @Override
    public void contextInitialized(ServletContextEvent event) {
        ServletContext context = event.getServletContext();
        socketManager = new DefaultSocketManager();
        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));
View Full Code Here

TOP

Related Classes of io.socket.support.servlet.BaseSocketIOServlet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.