edit:
ok so its actually more interesting the more i look into this. every 30 seconds, the page makes two requests to im.spacehey.com/api. one is to get the current list of chats, and the other is to load your message history in all of them at once.
now, you may be wondering, does it load the entire message history every 30 seconds??? well... not every 30 seconds. it has a system where it will send the unix timestamp of the last api request so that it only gets new messages sent during that timeframe.
however, it does load your entire message history, for all chats, at once, every time you reload the page. so if you have hundreds or even thousands of messages with someone... well you get the picture.
an, for the love of god please use websockets!
Comments
Displaying 0 of 0 comments ( View all | Add Comment )