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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -