Monday 1 May 2017

Nodejs: SocketIO (websockets) vs Http

  1. Normally i use ajax http requests to get/post data. Now i have thoughts like why shouldn't i replace all the ajax get requests with socketIO?is there any disadvantage in following this approach?
  2. I understand that session cookies will be sent between client and server during every http requests, is this case the same during client<=>server interactions using sockets?
  3. In which usecases should i prefer SocketIO over Http?(if you consider this as a question that demands broad answer then you can link me to some relevant articles)


via divine

No comments:

Post a Comment