You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>If you want to consume only active beans, you can inject an <code>InjectableInstance<></code> and call <code>getActive()</code> to get the single instance or <code>listActive()</code> to get all instances:</p>
<h4id="user-data"><aclass="anchor" href="#user-data"></a>6.3.2. User data</h4>
1206
+
<divclass="paragraph">
1207
+
<p>It is also possible to associate arbitrary user data with a specific connection.
1208
+
The <code>io.quarkus.websockets.next.UserData</code> object obtained by the <code>WebSocketConnection#userData()</code> method represents mutable user data associated with a connection.</p>
<p>Quarkus fires a CDI event of type <code>io.quarkus.websockets.next.WebSocketConnection</code> with qualifier <code>@io.quarkus.websockets.next.Open</code> asynchronously when a new connection is opened.
1208
1254
Moreover, a CDI event of type <code>WebSocketConnection</code> with qualifier <code>@io.quarkus.websockets.next.Closed</code> is fired asynchronously when a connection is closed.</p>
<h4id="user-data-2"><aclass="anchor" href="#user-data-2"></a>7.2.2. User data</h4>
1774
+
<divclass="paragraph">
1775
+
<p>It is also possible to associate arbitrary user data with a specific connection.
1776
+
The <code>io.quarkus.websockets.next.UserData</code> object obtained by the <code>WebSocketClientConnection#userData()</code> method represents mutable user data associated with a connection.</p>
<p>Quarkus fires a CDI event of type <code>io.quarkus.websockets.next.WebSocketClientConnection</code> with qualifier <code>@io.quarkus.websockets.next.Open</code> asynchronously when a new connection is opened.
1730
1822
Moreover, a CDI event of type <code>WebSocketClientConnection</code> with qualifier <code>@io.quarkus.websockets.next.Closed</code> is fired asynchronously when a connection is closed.</p>
0 commit comments