Need advice about which tool to choose?Ask the StackShare community!

SockJS

25
60
+ 1
0
Underscore

1.8K
589
+ 1
290
Add tool

SockJS vs Underscore: What are the differences?

Developers describe SockJS as "A WebSocket emulation". It gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server, with WebSockets or without. On the other hand, Underscore is detailed as "JavaScript's utility _ belt". A JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.

SockJS and Underscore can be categorized as "Javascript Utilities & Libraries" tools.

SockJS and Underscore are both open source tools. Underscore with 24.7K GitHub stars and 5.41K forks on GitHub appears to be more popular than SockJS with 1.73K GitHub stars and 278 GitHub forks.

Decisions about SockJS and Underscore

Fast Healthcare Interoperability Resources (FHIR) provides standard data objects in JSON format for the healthcare industry. Since JSON objects are hierarchical and tree-like, we had a need to defensively 'pluck' fields from our JSON objects and do lots of mapping. We tried jQuery and Underscore and a few other technologies like FHIRPath; but Lodash has been the most well supported, works in the most contexts, has the cleanest syntax, etc. We particularly like the ES6 version of Lodash, where we can import the method names directly, without resorting to * or _ syntax. We got hooked on the 'get' function to defensively pluck fields from objects without crashing our user interface, and have found countless uses for the other lodash functions throughout our apps. Lodash is great for developing and optimizing algorithms.

See more
Manage your open source components, licenses, and vulnerabilities
Learn More
Pros of SockJS
Pros of Underscore
    Be the first to leave a pro
    • 85
      Utility
    • 55
      Simple
    • 40
      Functional programming
    • 32
      Fast
    • 28
      Open source
    • 20
      Backbone
    • 16
      Javascript
    • 8
      Annotated source code
    • 6
      Library

    Sign up to add or upvote prosMake informed product decisions

    What is SockJS?

    It gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server, with WebSockets or without.

    What is Underscore?

    A JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use SockJS?
    What companies use Underscore?
    Manage your open source components, licenses, and vulnerabilities
    Learn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with SockJS?
    What tools integrate with Underscore?
      No integrations found

      Blog Posts

      What are some alternatives to SockJS and Underscore?
      Socket.IO
      It enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.
      ws
      It is a simple to use, blazing fast, and thoroughly tested WebSocket client and server implementation.
      SignalR
      SignalR allows bi-directional communication between server and client. Servers can now push content to connected clients instantly as it becomes available. SignalR supports Web Sockets, and falls back to other compatible techniques for older browsers. SignalR includes APIs for connection management (for instance, connect and disconnect events), grouping connections, and authorization.
      RabbitMQ
      RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
      jQuery
      jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
      See all alternatives