简体   繁体   中英

network tab in chrome doesnt update for every request sent

so for instance, this is difficult to explain but i will try to my best ability. if you refresh a page on for instance a discord channel, an ajax request is sent to: https://discord.com/api/v8/channels/channelidhere/messages?limit=50 which gets the last 50 messages sent in the channel. now, interestingly enough, if youre in a channel with lots of new messages being sent the netwrok tab does not update as if there were no requests associated with the channel messages being updated. ive seen this happen with other sites in similar ways and im just curious as to what i may be missing, is there some reason a request would be sent that the network tab doesnt catch? ps: even if i go to the all tab which supposedly captures all requests still no bueno.

It's common that chat website use websockets instead of http to communicate.

maybe this will help you How do you inspect websocket traffic with Chrome Developer Tools?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM