uWebsockets.js for FreeBSD
dist | ||
examples | ||
src | ||
benchmarks.png | ||
make.bat | ||
Makefile | ||
README.md |
This repository tracks the development of Node.js bindings for µWebSockets v0.15.
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.