{"action":"closed","issue":{"url":"https://api.github.com/repos/dinchak/node-serialosc/issues/1","labels_url":"https://api.github.com/repos/dinchak/node-serialosc/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/dinchak/node-serialosc/issues/1/comments","events_url":"https://api.github.com/repos/dinchak/node-serialosc/issues/1/events","html_url":"https://github.com/dinchak/node-serialosc/issues/1","id":119462016,"number":1,"title":"Allow to stop/restart the global connection","user":{"login":"jeluard","id":359723,"avatar_url":"https://avatars.githubusercontent.com/u/359723?v=3","gravatar_id":"","url":"https://api.github.com/users/jeluard","html_url":"https://github.com/jeluard","followers_url":"https://api.github.com/users/jeluard/followers","following_url":"https://api.github.com/users/jeluard/following{/other_user}","gists_url":"https://api.github.com/users/jeluard/gists{/gist_id}","starred_url":"https://api.github.com/users/jeluard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeluard/subscriptions","organizations_url":"https://api.github.com/users/jeluard/orgs","repos_url":"https://api.github.com/users/jeluard/repos","events_url":"https://api.github.com/users/jeluard/events{/privacy}","received_events_url":"https://api.github.com/users/jeluard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-30T10:19:45Z","updated_at":"2015-12-05T21:25:06Z","closed_at":"2015-12-05T21:25:06Z","body":"It would be nice to be able to stop/restart the global connections in a running node process. This would be helpful in development scenario where code is reloaded in a live process and probably for tests too.\r\n\r\nThis requires the ability to have sequences of `start`, `stop` being idempotent.\r\n\r\nAn option to support that would be to introduce a `stop` method that would `close` underlying socket for `receiver` and `serialoscEmitter` and make sure sockets are created in `start`. Currently sockets are created in `OscReceiver` and `OscEmitter` constructors and never released.\r\n\r\nWhat do you think?"}}