Replies: 2 comments
const uWS = require('../dist/uws.js');
const port = 9001;
const app = uWS.App({})
.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);
}
}); |
0 replies
|
Thanks for this example. I am not able to understand how can I use this build a real time chat. Any help would be appreciated. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
All reactions