• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Node.js websocket implementation vs others

 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I recently participated in the creation of a small websockets chat app. Prior to this my only experience with this great tech was from the perspective of the backend being implemented in a Spring stack that I saw at a conference. Well this app I helped create was done in node.js and everything seemed to be ready to go out the box with node.js where as a messaging layer needed/had to be added for websockets to work within the Spring stack.

Outside of Spring, do most implementations of websockets handle the messaging for you? I saw a Kaazing demo and it seemed they too would provide the messaging stack for you that node seems to just "do".
 
Author
Posts: 7
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It really varies on a per implementation basis. Socket.io (the Node.js module for WebSockets) provides both the client and server libraries to make getting an application up and running pretty easy. However, it binds you to certain things like using JSON as your message structure. For certain applications the additional data needed to structure data as JSON can be too expensive. If you were creating a game, which typically involves lots of messages, you would want to send data in as light a wrapper as you can.

There are lots of client side libraries out there as well that will help to make the structuring of messages a bit easier when such a library isn't provided by your backend server.
 
Matt Kidd
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a simple listing of those various libraries somewhere that I could browse?
 
Scott Mattocks
Author
Posts: 7
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not aware of any well defined lists, but a quick github search shows a bunch of WebSocket libraries.
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic