Question

So here is what I am doing:

Navigate to http://www.primefaces.org/showcase-labs/push/counter.jsf with Google Chrome while capturing network traffic using the built-in tool chrome comes with.(F12)

Everytime I hit the button there I see that a GET request is made to /counter.jsf so this I can understand.

I navigate to the same page with Firefox and hit the button using Firefox.

In Chrome, the counter is incremented but there is no Network Traffic. How is this possible? How does this implementation work? Why don't I see any Network Traffic?

Was it helpful?

Solution

The browser builtin network monitor only lists all network connections made so far. With push/websockets, the network connection is established once and then reused for all future data transfers. You thus indeed won't see new network connections appearing at all. You should however still be able to see the transferred data in the "Frames" tab of the opened websocket connection. In my case, Chrome has indeed the bug that it doesn't immediately refresh the "Frames" tab on newly incoming data, but you'll see it when you switch forth and back to another tab, e.g. to "Headers" or "Cookies" and then back to "Frames" tab. See also this video.

If you want to monitor all HTTP network traffic, regardless of the browser used, you'd better use a browser-independent tool like Fiddler.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top