Skip to content

Is there any example without ssl certificates? #82

Answered by lomadurov
Ahmdrza asked this question in Q&A
Discussion options

You must be logged in to vote
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);
		}
	});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #82 on December 09, 2020 13:52.