{"action":"created","issue":{"url":"https://api.github.com/repos/wzr1337/rsi.server/issues/75","repository_url":"https://api.github.com/repos/wzr1337/rsi.server","labels_url":"https://api.github.com/repos/wzr1337/rsi.server/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/wzr1337/rsi.server/issues/75/comments","events_url":"https://api.github.com/repos/wzr1337/rsi.server/issues/75/events","html_url":"https://github.com/wzr1337/rsi.server/issues/75","id":304320953,"number":75,"title":"Server is not serving as a listener","user":{"login":"arjunkoroth","id":30458398,"avatar_url":"https://avatars0.githubusercontent.com/u/30458398?v=4","gravatar_id":"","url":"https://api.github.com/users/arjunkoroth","html_url":"https://github.com/arjunkoroth","followers_url":"https://api.github.com/users/arjunkoroth/followers","following_url":"https://api.github.com/users/arjunkoroth/following{/other_user}","gists_url":"https://api.github.com/users/arjunkoroth/gists{/gist_id}","starred_url":"https://api.github.com/users/arjunkoroth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjunkoroth/subscriptions","organizations_url":"https://api.github.com/users/arjunkoroth/orgs","repos_url":"https://api.github.com/users/arjunkoroth/repos","events_url":"https://api.github.com/users/arjunkoroth/events{/privacy}","received_events_url":"https://api.github.com/users/arjunkoroth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-12T10:46:30Z","updated_at":"2018-03-15T09:37:20Z","closed_at":null,"author_association":"NONE","body":"I've created a plugin for my custom purpose. And this plugin reads some data from external service and pushes to RSI server. But whenever a new data is comes, server rebuild and restart is required. How can i change this?"},"comment":{"url":"https://api.github.com/repos/wzr1337/rsi.server/issues/comments/373315828","html_url":"https://github.com/wzr1337/rsi.server/issues/75#issuecomment-373315828","issue_url":"https://api.github.com/repos/wzr1337/rsi.server/issues/75","id":373315828,"user":{"login":"wzr1337","id":3704301,"avatar_url":"https://avatars0.githubusercontent.com/u/3704301?v=4","gravatar_id":"","url":"https://api.github.com/users/wzr1337","html_url":"https://github.com/wzr1337","followers_url":"https://api.github.com/users/wzr1337/followers","following_url":"https://api.github.com/users/wzr1337/following{/other_user}","gists_url":"https://api.github.com/users/wzr1337/gists{/gist_id}","starred_url":"https://api.github.com/users/wzr1337/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzr1337/subscriptions","organizations_url":"https://api.github.com/users/wzr1337/orgs","repos_url":"https://api.github.com/users/wzr1337/repos","events_url":"https://api.github.com/users/wzr1337/events{/privacy}","received_events_url":"https://api.github.com/users/wzr1337/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T09:37:20Z","updated_at":"2018-03-15T09:37:20Z","author_association":"OWNER","body":"Reading your code, I understand that:\r\n* You want to offer a resource animaldata\r\n* in this rescource, you create an element\r\n* you want to update the element once you receive TCP data\r\n\r\nBy definging the `elementSubscribable` property as `true` you tell the framework that elements may change over lifetime => all good\r\n\r\nIn your `callback()`, you create *new* elements everytime you receive data. This is *not* what you want to do, because you want to *update* the existing element. \r\n\r\nSolution: keep a handle to your element (`this.anim = new BehaviorSubject<AnimalElement>...`) then you want to call `.next()` on `this.anim` to publish updates.\r\n\r\nThinking it trough brought me to the conclusion that the frame work should report an error if you push an element with an aready known `id` (https://github.com/wzr1337/rsi.server/issues/77)."}}
{"actor":{"display_login":"wzr1337"}}