diff --git a/socialdragon/assets/js/app.js b/socialdragon/assets/js/app.js index 98d7ad4..4a94c4e 100644 --- a/socialdragon/assets/js/app.js +++ b/socialdragon/assets/js/app.js @@ -55,5 +55,7 @@ exampleSocket.onopen = function (event) { }; exampleSocket.onmessage = function (event) { item = JSON.parse(event.data); - app.items.push(item); + if (item.State === state) { + app.items.push(item); + } }