|
|
|
@ -1177,7 +1177,7 @@ We can trace the flow through a simple example. Consider the following example, |
|
|
|
@Controller |
|
|
|
@Controller |
|
|
|
public class GreetingController { |
|
|
|
public class GreetingController { |
|
|
|
|
|
|
|
|
|
|
|
@MessageMapping("/greeting") { |
|
|
|
@MessageMapping("/greeting") |
|
|
|
public String handle(String greeting) { |
|
|
|
public String handle(String greeting) { |
|
|
|
return "[" + getTimestamp() + ": " + greeting; |
|
|
|
return "[" + getTimestamp() + ": " + greeting; |
|
|
|
} |
|
|
|
} |
|
|
|
|