question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace ws with uws?

See original GitHub issue

https://github.com/alexhultman/uWebSockets

uws (µWS/µWebSockets) claims to be much more performant than ws:

  • 23x better short message throughput
  • 21x better connection performance
  • 52x less memory

Would be great to see this adopted in engine.io.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, May 4, 2016

@rauchg How would this happen in practice? I’m not very far from passing all tests and the only “porting” work required is to change require('ws').Server to require('uws').Server. Opt-in option for a test period?

1reaction
kapouercommented, May 4, 2016

Update: the project is moving quite fast, and pass almost all engine.io tests, see https://github.com/alexhultman/uWebSockets/issues/65. The port to uws looks trivial.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Replacing ws websocket module with µws module in Node.js
Basically, it is very easy to do the switch. On µws 's Github page, it says it tries to mimic the usage of...
Read more >
mastofe
... 7 May 2017 00:05:38 +0900 Replace ws with uws (#2807) * Replace ws with uws * fix indent * Adjust indentation *...
Read more >
uws-copy - npm
uws is a replacement module for ws which allows, but doesn't guarantee (certainly not when paired with Socket.IO), significant performance ...
Read more >
Replace ws with uws (#2807) · 67b7d3d3b6 - mastodon - Mania ...
Replace ws with uws * fix indent * Adjust indentation * remove trailing space maniasys/3.2.0. Eshin Kunishima pirms 5 gadiem. committed by Eugen...
Read more >
uuws: Documentation | Openbase
Node.js binding exposed as the well-known ws interface. ... Server; /* you replace 'ws' with 'uws' */ var wss = new WebSocketServer({ port:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found