aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/js/app.js')
-rw-r--r--web/src/js/app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/src/js/app.js b/web/src/js/app.js
index 736072dc..4ee35d60 100644
--- a/web/src/js/app.js
+++ b/web/src/js/app.js
@@ -1,4 +1,8 @@
$(function () {
- Connection.init();
- app = React.renderComponent(ProxyApp, document.body);
+ window.app = React.renderComponent(ProxyApp, document.body);
+ var UpdateConnection = new Connection("/updates");
+ UpdateConnection.onmessage = function (message) {
+ var m = JSON.parse(message.data);
+ AppDispatcher.dispatchServerAction(m);
+ };
}); \ No newline at end of file