1.1.4 • Published 6 years ago

utp-wasm v1.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

utp-wasm

An emscripten WASM build of libutp, as an alternative to utp-native when you are in an enviroment where you cannot load a native extension

NOTE: This is much slower than the native binding

Usage

const utp = require('utp-wasm')

const sock = utp()

sock.on('connection', function (connection) {
  // a simple echo server
  connection.pipe(connection)
})

sock.listen(20000)

API

Shares the same api as utp-native.

Building

To build this first fetch the libutp dep

npm run fetch-libutp

Then install emscripten and do

npm run emscripten

License

MIT

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.0

6 years ago