php - WebSockets vs. Server endpoints for getting simple information -


i making app involves chatting other users , being able view person's profile. using websockets chat functionality, able send , receive new messages.

when user go page view person's profile, should data gotten through websockets server, or should have endpoint on server pass user id , give user's information? way, websockets server chatting, , keep each bit of functionality organized it's own part, instead of putting on websockets server. however, don't know if using websockets information faster typical http request.

i know both of these work, wondering of these 2 preferable. thanks!


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -