Giter Site home page Giter Site logo

Comments (9)

FifineHex avatar FifineHex commented on May 29, 2024 1

just incrementing, socket.io is a bottleneck

53293184-5acf6080-378c-11e9-8753-c2a3f11a8b07

from ws-wrapper.

bminer avatar bminer commented on May 29, 2024

A good question. I prefer this library, of course, but I'll try to be fair and unbiased... :)

Reasons to use ws-wrapper:

  • Lightweight
  • 1 light dependency
  • Core functionality is there
  • Easily extensible
  • Less configuration to ponder about

Reasons to use socket.io:

  • More functionality out-of-the-box
  • Larger community
  • Better documentation

If I missed anything, please feel free to post back here. I'm closing this issue for now.

from ws-wrapper.

gurachan avatar gurachan commented on May 29, 2024

that last one is nice I wonder if they can do that on node too xD.

from ws-wrapper.

gurachan avatar gurachan commented on May 29, 2024

add this on chart

@GustavoMorais

socketcluster vs ClusterWS vs uWebSockets-bindings

from ws-wrapper.

FifineHex avatar FifineHex commented on May 29, 2024

"uWebSockets-bindings" is already on the chart, it's the last "uWS C++", but this particular version you mentioned is old and has no recommended use, since the author has changed the way it works

"ClusterWS" is based on "uWS" at least version 3.3.0, but you can't use a newer node version (this is mentioned on the git page itself), so if you want to use a newer version you will need to wait for version 4.0

SocketCluster => https://socketcluster.io/#!/performance

from ws-wrapper.

gurachan avatar gurachan commented on May 29, 2024

hmmm, that SocketCluster is interesting. but the docs are incomplete

from ws-wrapper.

FifineHex avatar FifineHex commented on May 29, 2024

I found another version of ClusterWS which is based on uWS v0.14 but you will be able to run on a newer node version.
https://github.com/ClusterWS/cWS

the choice depends on your needs, if your application is going to have more than 42k simultaneous connections then choose ClusterWS/cWS, if you don't need all that firepower you can use this current repo (I use it too and never let me down, he uses WS as his engine), SocketCluster is also a viable option for scalability, it has built-in load balancer options

from ws-wrapper.

gurachan avatar gurachan commented on May 29, 2024

sometimes not all wrapper perform same on their naked version xD but I will give that a try

from ws-wrapper.

gurachan avatar gurachan commented on May 29, 2024

I end up using socketcluster XD I created angular module for it... it works just like socket io.. 90% xD ClusterWS/cWS seems too slow to connect.. I need to emit a message OnInit ... not afterviewinit.. even at afterviewinit the clusterws seems not connected yet.. it will throw Failed to execute 'send' on 'WebSocket': Still in CONNECTING state. but socketcluster works nice it works the way I wanted. you can even emit right after you call the connect unlike clusterws ... both socketcluster and clusterws had power to utilizes all the cores its just ClusterWS/cWS still not ready for production .. it will be deprecated soon because v4 will come XD

from ws-wrapper.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.