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);
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
-
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions