Package org.springframework.web.socket.sockjs

Examples of org.springframework.web.socket.sockjs.SockJsHttpRequestHandler


    DefaultSockJsService sockJsService = new DefaultSockJsService(sockJsTaskScheduler());
    sockJsService.setSockJsClientLibraryUrl("https://cdn.sockjs.org/sockjs-0.3.4.min.js");

    Map<String, Object> urlMap = new HashMap<String, Object>();
    urlMap.put("/websockets/**", new SockJsHttpRequestHandler(sockJsService, serverWebSocketHandler()));

    SimpleUrlHandlerMapping hm = new SimpleUrlHandlerMapping();
    hm.setOrder(-1);
    hm.setUrlMap(urlMap);

View Full Code Here

TOP

Related Classes of org.springframework.web.socket.sockjs.SockJsHttpRequestHandler

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.