uWebsockets.js for FreeBSD
Go to file
Alex Hultman 100c93ffe4 Le dump 2018-10-28 16:07:21 +01:00
dist Le dump 2018-10-28 16:07:21 +01:00
examples Le dump 2018-10-28 16:07:21 +01:00
src Le dump 2018-10-28 16:07:21 +01:00
Makefile Le dump 2018-10-28 16:07:21 +01:00
README.md Update README.md 2018-10-04 23:18:50 +02:00
make.bat Le dump 2018-10-28 16:07:21 +01:00

README.md

µWS ("microWS") for Node.js is simple and efficient[1] messaging for the modern web.

Read more

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');
});