Websockets: Is it possible to add multiple Endpoints using SockJS?
问题 I want to create 2 web socket endpoints. Can you tell is it possible? What shall be the configuration in that case? 回答1: Your question does not clearly states if you're using plain websockets or STOMP messaging. Plain websocket API If you're using the plain websocket API, the registry API allows you to add as many websocket handlers as you want. @Configuration @EnableWebSocket public class WebSocketConfig implements WebSocketConfigurer { @Override public void registerWebSocketHandlers