/* Minimal SSL/non-SSL example */ const port = 9001; const app = uWS./*SSL*/App({ key_file_name: '/home/alexhultman/key.pem', cert_file_name: '/home/alexhultman/cert.pem', passphrase: '1234' }).get('/*', (res, req) => { res.end('Hello World!'); }).listen(port, (token) => { if (token) { console.log('Listening to port ' + port); } else { console.log('Failed to listen to port ' + port); } });