Skip to content
Snippets Groups Projects
Verified Commit a4b274e5 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Mapojeni na websocket

parent 322251ba
Branches
Tags
No related merge requests found
......@@ -59,4 +59,10 @@ function formatterStatus(value, row) {
}
}
var ws = new WebSocket('<%= $c->config->{ws_url} %>/streams');
ws.onmessage = function (event) {
console.log(event.data);
$('#Streams').bootstrapTable('refresh', {silent: true})
};
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment