The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> JavaScript data, How websites work, getting their data, responses
walduxas
post Jul 14 2022, 08:31 AM
Post #1





Group: Members
Posts: 1
Joined: 14-July 22
Member No.: 28,445



Hi, there's online game "Forge of empires". I use Google chrome network inspector to record network activity when I browse in the game. Network inspector allows me to copy various responses which I then copy paste into Excel and view various game stats in a way, that I prefer. The game itself provides vary poor stats info.
However, I'm more interested in particular case. There's battle map where various guilds fight there. I can see data loaded via network inspector when I enter the map. However, after the map is loaded, network inspector doesn't show any more data beeing loaded, no more network responses are being received. But the map still keeps updating, I can see various guilds fighting. I'm wondering, why network inspector doesn't capture any more network responses after map is loaded? Is it related to JavaScript? Is it posible to capture data (for instance response texts) after map is loaded?


Attached thumbnail(s)
Attached Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jul 14 2022, 06:35 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(walduxas @ Jul 14 2022, 03:31 PM) *

But the map still keeps updating, I can see various guilds fighting. I'm wondering, why network inspector doesn't capture any more network responses after map is loaded? Is it related to JavaScript?

If the game changes are only caused by javascript running in your own browser you may not see any new network traffic, but I think the Inspector's Element view (where the page's HTML is shown) would reveal such changes. You just need to find where in the HTML structure they occur.

Javascript can also send or retrieve data from the game's web server (XHR/Ajax), but then I think it would be visible in the Inspector's Network view.




User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Sophieelliott
post Aug 8 2023, 01:14 AM
Post #3





Group: Members
Posts: 2
Joined: 8-August 23
Member No.: 29,009



Network inspectors primarily capture traditional HTTP requests and responses, which could explain the lack of captured data post-load. Real-time updates often rely on persistent connections, bypassing standard HTTP interactions. To capture this dynamic data, consider using browser developer tools' "Console" or "WebSocket" tab, or external tools designed for WebSocket monitoring.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 03:16 AM