mgubaidullin commented on issue #563: URL: https://github.com/apache/camel-karavan/issues/563#issuecomment-1374881226
I was thinking about following solution: 1. When used open log send request to backend 2. Backend creates EventHandler like this https://github.com/apache/camel-karavan/blob/e2f183e8a5165f3e85df61ccdc8693cc9714be92/karavan-app/src/main/java/org/apache/camel/karavan/service/KubernetesService.java#L113 3. Backend sends log using SERVER_SENT_EVENTS 4. Client listen SERVER_SENT_EVENTS to show logs Open questions: 1. How identify client to send events accordingly? In the one of my previous projects I used this approach https://github.com/mgubaidullin/karamel/blob/08710409ee05c89161890f18eb90ac6c577d2cbb/src/main/java/one/entropy/karamel/rest/MessageResource.java#L30 I don't know if this is the best solution 2. When to close EventHandler? Cases: user close log tab, user just closed browser at all, user leave browser open forever -- 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: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org