1

So. I have got web-chat working on socket.io. I'm thinking of using it also for web-pages transportation for not to create more requests to the server. How do you feel about it?

.. Or, probably, one additional request per minute won't make sense, but it's easier to work on web-pages in Express. Anyway.

Ben Usman
  • 7,969
  • 6
  • 46
  • 66

2 Answers2

1

Those pages could not be found by any search engine. For private areas (where you have to be logged in), why not? I think the only disadvantage would be, that you could not load multiple things together.

Van Coding
  • 24,244
  • 24
  • 88
  • 132
  • Multiple things together? If I put tags into page would they load parallel, isn't it? So, what would load not together? – Ben Usman Aug 25 '11 at 11:02
1

I think of websockets as being a good fit for web applications, not web sites. Transferring web pages would lose the ability to bookmark or to utilize SEO techniques.

However, I certainly think that using websockets in place of AJAX calls is a direction to move in. I've provided some resources and information in answers to similar questions:

websocket api to replace rest api?

What is the disadvantage of using websocket/socket.io where ajax will do?

Community
  • 1
  • 1
Tauren
  • 26,795
  • 42
  • 131
  • 167