Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. @Configuration
  2. class WebSocketConfig : WebSocketMessageBrokerConfigurer {
  3. override fun configureMessageBroker(config: MessageBrokerRegistry) {
  4. config.enableSimpleBroker("/topic")
  5. config.setApplicationDestinationPrefixes("/app")
  6. }
  7.  
  8. override fun registerStompEndpoints(registry: StompEndpointRegistry) {
  9. registry.addEndpoint("/gs-guide-websocket").setAllowedOrigins("*").withSockJS()
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement