Primus VS Socket.io

Compare Primus vs Socket.io and see what are their differences.

Primus

:zap: Primus, the creator god of the transformers & an abstraction layer for real-time to prevent module lock-in. (by primus)

Socket.io

Realtime application framework (Node.JS server) (by socketio)
Our great sponsors
  • Scout APM - A developer's best friend. Try free for 14-days
  • Nanos - Run Linux Software Faster and Safer than Linux with Unikernels
  • SaaSHub - Software Alternatives and Reviews
Primus Socket.io
2 306
4,301 54,756
0.4% 0.5%
5.8 7.9
4 months ago 9 days ago
JavaScript TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Primus

Posts with mentions or reviews of Primus. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-10-28.

Socket.io

Posts with mentions or reviews of Socket.io. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-11-25.
  • Socket.io Admin ui not connecting due to cors, even though it's set up
    1 project | reddit.com/r/learnjavascript | 27 Nov 2021
    I've run into an annoying bug with my admin ui for my socket.io express project. For some reasons my /lobby/ and /counter/ socket are working fine with my frontend but my admin.socket.io ui wont connect. I always get this error:
  • Socket.io can't connect admin panel to server.
    1 project | reddit.com/r/node | 26 Nov 2021
    I am currently working on my first node app and cannot get my socket.io admin ui to work. Everytime i want to connect it puts out: "Error: xhr poll error". Yet i clearly have my cors set up. Furthermore my application is working fine so far so it the setup has to be right. If it can establish socket connections to my browser under the precondition of enabling all conditions, the admin panel should work too, right?. How can i fix this? and yes I've tried every possible address in the "serve-url" input. I even tried connecting to /lobby/admin and the port of my frontend. Your help is kindly appreciated
  • [For hire] Web & Mobile Expert (React | React Native | Node | Vue | WP | AWS)
    1 project | reddit.com/r/forhire | 25 Nov 2021
    ➭ NodeJS, MongoDB, Express.js, Socket.io (Senior)
  • TCP or websockets for chat server
    6 projects | reddit.com/r/golang | 25 Nov 2021
    You can use the socket.io framework for something like this. It is a real time communication framework built on top of websocket (and other alternative transports) that allows you implement something like chat with minimal effort.
  • Nginx websocket config not working
    2 projects | reddit.com/r/nginx | 25 Nov 2021
    flask socket.io not working on live website which uses gunicorn and nginx. Code works perfectly with gunicorn on host machine
    2 projects | reddit.com/r/nginx | 25 Nov 2021
    you are proxying to ` http://127.0.0.1:443\` - is socket.io server also uses TLS? Usually since you are terminating TLS on Nginx upstream process not using TLS. But not always - so just a shot in the dark.
  • Manage socket events in Flutter in different screens
    1 project | reddit.com/r/flutterhelp | 23 Nov 2021
    I want to implement sockets in my app. There is one little thing that is bothering me. By documentation https://pub.dev/packages/socket_io_client I should initialize socket.io in main(), so I did:
  • Backend stack for chat application
    1 project | reddit.com/r/node | 20 Nov 2021
    - socket.io - uWebSockets (with wsapix on top)
  • Starting my career, would like advice on if i'm competent enough.
    1 project | reddit.com/r/cscareerquestions | 19 Nov 2021
    socket.io
  • Using redux and socket.io together
    1 project | reddit.com/r/reduxjs | 19 Nov 2021
    I have read on the redux site that sockets should not be stored in the state itself and that socket.io should really be implemented as a middleware. At the moment my confusion comes in with how to get the client side to access the store if I have it on the server side? This article provides an example by passing the store to the highest level component and re-rendering the application each time the state changes (socket.io event gets emitted each time store changes using store.subscribe()) however I have doubts about this approach for my application because it means that each client's tree is getting re-rendered by events from other rooms. How does the client subscribe to the store if it is server-side?

What are some alternatives?

When comparing Primus and Socket.io you can also consider the following projects:

SocketCluster - Highly scalable realtime framework

deepstream.io - deepstream.io server

SockJS - WebSocket emulation - Node.js server

Faye - Simple pub/sub messaging for the web

humanify - Add human touch to otherwise very machined node.js streams.

Kalm - Moved to https://github.com/kalm/kalm.js

VuePress - 📝 Minimalistic Vue-powered static site generator

vba-websocket - VBA Websocket Sample (Echo Server Client)

rivalis-core - Rivalis, framework for building real-time application servers

Introducing .NET Multi-platform App UI (MAUI) - .NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.