mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-03-03 05:00:41 -05:00
63101ad67184ae9f9385f2c9d26a34361094deae
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
Languages
C++
90.5%
C
8%
JavaScript
1.4%
Makefile
0.1%