Skip to content

Commit

Permalink
added missing annotation parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
andlinger authored Jun 6, 2024
1 parent 20d3c9d commit 5286ec9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/src/main/asciidoc/websockets-next-reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ Meanwhile, the `consumeNested` method within the nested class can access both `v

[source, java]
----
@WebSocket("/ws/v{version}")
@WebSocket(path = "/ws/v{version}")
public class MyPrimaryWebSocket {
@OnTextMessage
void consumePrimary(String s) { ... }
@WebSocket("/products/{id}")
@WebSocket(path = "/products/{id}")
public static class MyNestedWebSocket {
@OnTextMessage
Expand All @@ -163,12 +163,12 @@ However, developers can specify alternative scopes to suit their specific requir

[source,java]
----
@WebSocket("/ws")
@WebSocket(path = "/ws")
public class MyWebSocket {
// Singleton scoped bean
}
@WebSocket("/ws")
@WebSocket(path = "/ws")
@ApplicationScoped
public class MyRequestScopedWebSocket {
// Application scoped.
Expand Down Expand Up @@ -420,7 +420,7 @@ Methods annotated with `@OnOpen` can utilize server-side streaming by returning

[source, java]
----
@WebSocket("/foo")
@WebSocket(path = "/foo")
@OnOpen
public Multi<Integer> streaming() {
return Multi.createFrom().ticks().every(Duration.ofSecond(1))
Expand Down

0 comments on commit 5286ec9

Please sign in to comment.