From 82648439b945cc5d049886f7e79c2f0dd9d14ff9 Mon Sep 17 00:00:00 2001 From: Udo Walter Date: Mon, 26 Nov 2018 19:12:31 +0000 Subject: [webapp+server] Add first implementation of a websocket to alert webclients of events and to synchronize notification across multiple webapp instances of the same user --- server/bin/www | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'server/bin') diff --git a/server/bin/www b/server/bin/www index 3618506..3cfebbd 100755 --- a/server/bin/www +++ b/server/bin/www @@ -31,6 +31,13 @@ var options = { } var server = https.createServer(options, app) +/** + * Setup socket.io. + */ + +var io = require(path.join(__appdir, 'lib', 'socketio')) +io.attach(server) + /** * Listen on provided port, on all network interfaces. */ -- cgit v1.2.3-55-g7522