|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2016 the original author or authors. |
|
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -26,7 +26,7 @@ import org.springframework.context.annotation.Import;
@@ -26,7 +26,7 @@ import org.springframework.context.annotation.Import;
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Add this annotation to an {@code @Configuration} class to configure |
|
|
|
|
* processing WebSocket requests: |
|
|
|
|
* processing WebSocket requests. A typical configuration would look like this: |
|
|
|
|
* |
|
|
|
|
* <pre class="code"> |
|
|
|
|
* @Configuration |
|
|
|
|
@ -49,7 +49,7 @@ import org.springframework.context.annotation.Import;
@@ -49,7 +49,7 @@ import org.springframework.context.annotation.Import;
|
|
|
|
|
* registry.addHandler(echoWebSocketHandler(), "/echo").withSockJS(); |
|
|
|
|
* } |
|
|
|
|
* |
|
|
|
|
* @Bean |
|
|
|
|
* @Override |
|
|
|
|
* public WebSocketHandler echoWebSocketHandler() { |
|
|
|
|
* return new EchoWebSocketHandler(); |
|
|
|
|
* } |
|
|
|
|
|