aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/server.js
diff options
context:
space:
mode:
authorMarvin Borner2019-02-13 17:14:47 +0100
committerMarvin Borner2019-02-13 17:14:47 +0100
commit6a967887df29c0051a22df96463aed63b7ece729 (patch)
tree15b91fccb40990ebc2e0c822b843582e672f0465 /src/server.js
parent8cad9c810741088a1874b58e80245ce83909b582 (diff)
Code cleanup
Diffstat (limited to 'src/server.js')
-rw-r--r--src/server.js12
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}`));