Oipo commented on a change in pull request #143: Feature/pubsub websocket full 
duplex communication
URL: https://github.com/apache/celix/pull/143#discussion_r371027636
 
 

 ##########
 File path: 
bundles/pubsub/pubsub_admin_websocket/src/pubsub_websocket_topic_receiver.c
 ##########
 @@ -558,34 +586,88 @@ static void* psa_websocket_recvThread(void * data) {
     return NULL;
 }
 
+static void psa_websocketTopicReceiver_ready(struct mg_connection *connection, 
void *handle) {
+    if (handle != NULL) {
+        pubsub_websocket_topic_receiver_t *receiver = 
(pubsub_websocket_topic_receiver_t *) handle;
+
+        //Get request info with host, port and uri information
+        const struct mg_request_info *ri = mg_get_request_info(connection);
+        if (ri != NULL && strcmp(receiver->uri, ri->request_uri) == 0) {
 
 Review comment:
   Similarly, you can reduce nesting here.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to