Skip to content

Commit

Permalink
Merge pull request quarkusio#41021 from andlinger/patch-7
Browse files Browse the repository at this point in the history
Docs: Added missing annotation parameter name
  • Loading branch information
mkouba authored Jun 6, 2024
2 parents bc1800d + 5286ec9 commit 75928a5
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 75928a5

Please sign in to comment.