From 2104846e138f9936579af983c644e5219c37e507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Thu, 13 Jun 2024 22:33:59 +0200 Subject: [PATCH] Fix WS Next CDI events documentation --- docs/src/main/asciidoc/websockets-next-reference.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/websockets-next-reference.adoc b/docs/src/main/asciidoc/websockets-next-reference.adoc index 4eae198910817..11e14ba18a2c4 100644 --- a/docs/src/main/asciidoc/websockets-next-reference.adoc +++ b/docs/src/main/asciidoc/websockets-next-reference.adoc @@ -523,18 +523,18 @@ For example, `OpenConnections#findByEndpointId(String)` makes it easy to find co === CDI events -Quarkus fires a CDI event of type `io.quarkus.websockets.next.WebSocketConnection` with qualifier `@io.quarkus.websockets.next.ConnectionOpen` asynchronously when a new connection is opened. -Moreover, a CDI event of type `WebSocketConnection` with qualifier `@io.quarkus.websockets.next.ConnectionClosed` is fired asynchronously when a connection is closed. +Quarkus fires a CDI event of type `io.quarkus.websockets.next.WebSocketConnection` with qualifier `@io.quarkus.websockets.next.Open` asynchronously when a new connection is opened. +Moreover, a CDI event of type `WebSocketConnection` with qualifier `@io.quarkus.websockets.next.Closed` is fired asynchronously when a connection is closed. [source, java] ---- import jakarta.enterprise.event.ObservesAsync; -import io.quarkus.websockets.next.ConnectionOpen; +import io.quarkus.websockets.next.Open; import io.quarkus.websockets.next.WebSocketConnection; class MyBean { - void connectionOpened(@ObservesAsync @ConnectionOpen WebSocketConnection connection) { <1> + void connectionOpened(@ObservesAsync @Open WebSocketConnection connection) { <1> // This observer method is called when a connection is opened... } }