Comments (9)
just incrementing, socket.io is a bottleneck
from ws-wrapper.
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.
that last one is nice I wonder if they can do that on node too xD.
from ws-wrapper.
add this on chart
socketcluster vs ClusterWS vs uWebSockets-bindings
from ws-wrapper.
"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.
hmmm, that SocketCluster is interesting. but the docs are incomplete
from ws-wrapper.
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.
sometimes not all wrapper perform same on their naked version xD but I will give that a try
from ws-wrapper.
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)
- Channel does not have `get()` or `set()` methods
- onMessage hook? HOT 6
- Type definitions HOT 3
- Hooks HOT 9
- Option to disable pendingSend globally HOT 14
- Export ES Modules HOT 2
- Server fails with error after client emitted event HOT 10
- Change constructor property names to avoid weird issues
- node app as client HOT 1
- Compile to ES5 HOT 1
- Maybe emit "connect" event in addition to "open" event? HOT 1
- "a" leading sendEvent data HOT 3
- Protocol mismatch: packets are sent as { "a": { "0": "connect" }} instead of { "a": ["connect"] } HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws-wrapper.