menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Theia

Eclipse Theia - Cloud & Desktop IDE

Channels
Team

How to track websocket activity?

June 16, 2019 at 11:08pm

How to track websocket activity?

June 16, 2019 at 11:08pm
How would you go about monitoring a user's traffic (in a dockerized Theia container)? I don't need anything complex, just simply want to understand if it's possible to see something like nginx access logs, but for the websocket traffic within Theia. I don't necessarily need to know which action was made—opening a file, running a command at the terminal, etc.—I only need to know that a request was sent and received. (Though, if possible, I'd be interested in more detailed data.)
So, how would you go about this?

June 17, 2019 at 7:15am
We don't log them anythere. For debugging purposes one can use dev tools. Some services, like language servers, allow to enable tracing via preferences, then requests/reponses can be inspected in the output view.

June 18, 2019 at 11:48pm
Excellent. Thanks so much, !