uWebsockets.js for FreeBSD
Go to file
Alex Hultman 0393102704 Make the two runtimes capable of sharing the same example 2018-11-04 23:46:50 +01:00
dist
examples Make the two runtimes capable of sharing the same example 2018-11-04 23:46:50 +01:00
src Make the two runtimes capable of sharing the same example 2018-11-04 23:46:50 +01:00
uWebSockets@6231aceaef Update uWS 2018-11-04 22:45:07 +01:00
.gitmodules Add uWebSockets submodule 2018-11-04 00:11:12 +01:00
Makefile Drop Node.js 8, compile for V8 7.1+ 2018-11-04 08:55:35 +01:00
README.md Changed my mind 2018-11-04 01:56:25 +01:00
benchmarks.png Add files via upload 2018-11-03 12:41:47 +01:00
host.pro Make it embeddable as standalone 2018-11-04 09:01:51 +01:00
make.bat

README.md

Loopery is Google V8 tied to µWebSockets for building high performance JavaScript backend services.

const uWS = require('...lalala');

const app = uWS.SSLApp({
  cert: 'my_cert.pem',
  key: 'my_key.pem'
}).get('/whatsmy/useragent', (res, req) => {
  res.end('Hello ' + req.getHeader('user-agent'));
}).get('/*', (res, req) => {
  res.end('Hello otherwise!');
}).listen(3000, 0, (token) => {
  console.log('Listening to port 3000');
});

Benchmarks

Performance retention is up to 70% of native C++ µWebSockets v0.15.

Kick-start

The following works for Linux and macOS systems:

git clone --recursive https://github.com/uNetworking/uWebSockets-node.git
cd uWebSockets-node
make
node examples/HelloWorld.js