HoussemNasri commented on code in PR #2517:
URL: https://github.com/apache/james-project/pull/2517#discussion_r1858522155


##########
server/protocols/jmap-rfc-8621/src/main/scala/org/apache/james/jmap/routes/WebSocketRoutes.scala:
##########
@@ -209,4 +210,20 @@ class WebSocketRoutes @Inject() 
(@Named(InjectionKeys.RFC_8621) val authenticato
         connectedUsers.remove(context)
       })
   }
+
+  override def describeConnections(): stream.Stream[ConnectionDescription] = {
+    connectedUsers.values()
+      .stream()
+      .map(context => new ConnectionDescription(
+        "JMAP",
+        "WebSocket",
+        Optional.empty(),
+        Optional.empty(),
+        context.pushRegistration.get() != null,
+        context.pushRegistration.get() != null,
+        true,
+        false,

Review Comment:
   Boolean constant?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to