aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2019-09-09 21:33:58 -0700
committerAdam Soltys <[email protected]>2019-09-09 21:33:58 -0700
commitd7d73932a4737a67d1960dff65e0910eda6cd8b4 (patch)
treec699def143e36c96edd7993dda00ed335083baae /index.js
parentef8e8b76706fc907c2d6702e2b6741635ff6733d (diff)
downloadcoinos-server-d7d73932a4737a67d1960dff65e0910eda6cd8b4.tar.gz
coinos-server-d7d73932a4737a67d1960dff65e0910eda6cd8b4.zip
socket server listen
Diffstat (limited to 'index.js')
-rw-r--r--index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.js b/index.js
index 00b0dad1..18f6e813 100644
--- a/index.js
+++ b/index.js
@@ -46,6 +46,7 @@ const authy = new Client({ key: config.authy.key });
const server = require("http").Server(app);
const db = await require("./db")(lna);
const [socket, emit] = require("./sockets")(app, db, server);
+ socket.listen(server);
const passport = require("./passport")(db);
const auth = passport.authenticate("jwt", { session: false });
const seen = [];