diff options
Diffstat (limited to 'src/server.js')
-rw-r--r-- | src/server.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/server.js b/src/server.js index d3c0760..61eb331 100644 --- a/src/server.js +++ b/src/server.js @@ -6,13 +6,15 @@ */ /** - * This script should only be used on a deployment server. For debugging purposes please use 'npm run dev' + * This script should only be used on a deployment server. + * For debugging purposes please use 'npm run dev' */ const PeerServer = require('peer').PeerServer; + const server = PeerServer({ - debug: true, - port: 4242, - path: '/api', + debug: true, + port: 4242, + path: '/api', }); -server.on('connection', id => console.log('New connection: ' + id)); +server.on('connection', id => console.log(`New connection: ${id}`)); |