Skip to content

Commit

Permalink
toplevel class can't have static
Browse files Browse the repository at this point in the history
if pasting the code into toplevel class you end up with error so removing it from the client endpoint

(cherry picked from commit 3fcf02e)
  • Loading branch information
maxandersen authored and gsmet committed Aug 1, 2024
1 parent 6a6fa00 commit 0ff01dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/main/asciidoc/websockets-next-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ Let’s consider the following client endpoint:
[source, java]
----
@WebSocketClient(path = "/endpoint/{name}")
public static class ClientEndpoint {
public class ClientEndpoint {
@OnTextMessage
void onMessage(@PathParam String name, String message, WebSocketClientConnection connection) {
Expand Down

0 comments on commit 0ff01dc

Please sign in to comment.