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

javascript - Confirm a form & display message if form is valid with JQuery -

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

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -