Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotwoods committed Nov 7, 2023
1 parent e3f47e3 commit 0472590
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 164 deletions.
16 changes: 14 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,19 @@ app.use(function(err, req, res, next) {
res.render('error');
});


const peerServer = PeerServer({port: 9000});
// Set the port for the Express application
const PORT = process.env.PORT || 5000;

// Start the Express server
const server = app.listen(PORT, () => {
console.log(`Server is running at http://localhost:${PORT}/`);
console.log(`For broadcasting go to http://localhost:${PORT}/broadcast.html`);
console.log(`Clients can connect at http://localhost:${PORT}/`);
});

// PeerServer is running on port 9000
const peerServer = PeerServer({ port: 9000 }, () => {
console.log('PeerServer is running on port 9000');
});

module.exports = app;
Loading

0 comments on commit 0472590

Please sign in to comment.