summaryrefslogtreecommitdiffstats
path: root/server/bin
diff options
context:
space:
mode:
authorUdo Walter2018-11-26 20:12:31 +0100
committerUdo Walter2018-11-26 20:12:31 +0100
commit82648439b945cc5d049886f7e79c2f0dd9d14ff9 (patch)
treeebeb33ba47bef73306d004b230726ddad5d16bfa /server/bin
parent[webapp] small bugfix (diff)
downloadbas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.tar.gz
bas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.tar.xz
bas-82648439b945cc5d049886f7e79c2f0dd9d14ff9.zip
[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
Diffstat (limited to 'server/bin')
-rwxr-xr-xserver/bin/www7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/bin/www b/server/bin/www
index 3618506..3cfebbd 100755
--- a/server/bin/www
+++ b/server/bin/www
@@ -32,6 +32,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.
*/