Closed be-thomas closed 3 years ago
I have code like this -
require('uWebSockets.js').App().ws('/*', ... ).get('/*', ...).listen(9001, (listenSocket) => { if (listenSocket) { console.log('Listening to port 9001'); }
How do I make this listen at 127.0.0.1:9001 or 192.168.0.1:9001 ?
You can read the docs https://unetworking.github.io/uWebSockets.js/generated/interfaces/templatedapp.html#listen
I have code like this -
How do I make this listen at 127.0.0.1:9001 or 192.168.0.1:9001 ?