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

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

c# - Populating Gridview inside Listview ItemTemplate On Web User Control from Code Behind -