2018-11-04 01:56:25 +01:00
2018-11-03 12:35:42 +01:00
2018-11-03 12:35:42 +01:00
2018-11-04 00:11:12 +01:00
2018-11-04 00:11:12 +01:00
2018-11-03 12:41:47 +01:00
2018-10-28 16:07:21 +01:00
2018-11-04 00:11:12 +01:00
2018-11-04 01:56:25 +01:00

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
Description
uWebsockets.js for FreeBSD
Readme 1.8 MiB
Languages
C++ 85.4%
JavaScript 7.7%
C 5.2%
QMake 1.5%
Makefile 0.2%