diff options
author | Marvin Borner | 2019-02-11 21:51:13 +0100 |
---|---|---|
committer | Marvin Borner | 2019-02-11 21:51:13 +0100 |
commit | 8ab551a96cdc24f54025e1b2e905a4aadeb76b19 (patch) | |
tree | 71935ee215f8b801572fbd470038f3a97e10b53d /src | |
parent | 7a77f7486201d5f237087506a709160d63f47550 (diff) |
Added deployment server script
Diffstat (limited to 'src')
-rw-r--r-- | src/server.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/server.js b/src/server.js new file mode 100644 index 0000000..d3c0760 --- /dev/null +++ b/src/server.js @@ -0,0 +1,18 @@ +/* + * server.js + * Copyright (c) 2019, Texx + * License: MIT + * See https://github.com/texxme/Texx/blob/master/LICENSE + */ + +/** + * 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', +}); + +server.on('connection', id => console.log('New connection: ' + id)); |