From 0c6c113700fa9e8cff6d0f7552461c7fb6a93308 Mon Sep 17 00:00:00 2001 From: yann300 Date: Sat, 8 Sep 2018 02:11:06 +0200 Subject: [PATCH] update use of remixd in embark --- embark/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/embark/index.js b/embark/index.js index 0d15e01a95..a82d2ca027 100644 --- a/embark/index.js +++ b/embark/index.js @@ -12,6 +12,11 @@ module.exports = (embark) => { }) server.listen(8080, '127.0.0.1', function () {}) - var router = new remixd.Router() - router.start(path.join(__dirname, '/../../')) + var router = new remixd.Router(65520, remixd.services.sharedFolder, (webSocket) => { + remixd.services.sharedFolder.setWebSocket(webSocket) + var sharedFolder = path.join(__dirname, '/../../') + remixd.services.sharedFolder.setupNotifications(sharedFolder) + remixd.services.sharedFolder.sharedFolder(sharedFolder) + }) + router.start() }