blob: b5d50d340bb30df8742778fdf5c4374057333fcd (
plain)
1
2
3
4
5
6
7
8
9
10
|
$(function () {
ReactRouter.run(routes, function (Handler) {
React.render(<Handler/>, document.body);
});
var UpdateConnection = new Connection("/updates");
UpdateConnection.onmessage = function (message) {
var m = JSON.parse(message.data);
AppDispatcher.dispatchServerAction(m);
};
});
|