From 7eba6a708e5a37a97bc0f6c6a8080c81d87cb7c4 Mon Sep 17 00:00:00 2001 From: Travis Shivers Date: Sat, 26 Sep 2020 18:09:27 -0500 Subject: [PATCH] fix(server): switch name to syncloungeserver --- server.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index d9b95f51..8eff12b9 100755 --- a/server.js +++ b/server.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -const syncloungeSocket = require('syncloungesocket'); +const syncloungeServer = require('syncloungeserver'); const path = require('path'); const config = require('./config'); @@ -13,7 +13,7 @@ const handle = (signal) => { process.on('SIGINT', handle); process.on('SIGTERM', handle); -const blockList = Object.keys(syncloungeSocket.defaultConfig); +const blockList = Object.keys(syncloungeServer.defaultConfig); const appConfig = config.get(null, blockList); console.log(appConfig); @@ -24,8 +24,8 @@ const preStaticInjection = (router) => { }); }; -const socketConfig = syncloungeSocket.getConfig(); -syncloungeSocket.socketServer({ +const socketConfig = syncloungeServer.getConfig(); +syncloungeServer.socketServer({ ...socketConfig, static_path: path.join(__dirname, 'dist'), preStaticInjection,