uws-repack

Repacked version of uws

Usage no npm install needed!

<script type="module">
  import uwsRepack from 'https://cdn.skypack.dev/uws-repack';
</script>

README

Motivation

The original µWS project makes no compromise and states to be the fastest ws server (not for only for nodejs, but of all available implementations). The whole thing is designed to handle zillions of lnk/socket per server and the source code is strongly designed for performances.

This project intends to soften the nodejs' integration of the whole thing. (and do not aim to be used as a c++ lib at all)

Differences with uws

  • Change in the file tree structure (helps the npm workflow, just git clone & npm install)
  • no pre-compiled binaries whatsoever
  • align to ws options."path" policy (do NOT close sockets on unhandled links)
  • Exposes a functionnal socket.send callback (not a dummy instant/sync call)

TODO

  • Switch to nan for multi-version abstraction

===== Please refer the µWS main repo for an up-to-date version.