Socket
Book a DemoInstallSign in
Socket

utp-wasm

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utp-wasm

Emscripten WASM build of libutp

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 18 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts