{"action":"opened","issue":{"url":"https://api.github.com/repos/colinbdclark/osc.js/issues/69","repository_url":"https://api.github.com/repos/colinbdclark/osc.js","labels_url":"https://api.github.com/repos/colinbdclark/osc.js/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/colinbdclark/osc.js/issues/69/comments","events_url":"https://api.github.com/repos/colinbdclark/osc.js/issues/69/events","html_url":"https://github.com/colinbdclark/osc.js/issues/69","id":182963172,"number":69,"title":"Howto: make it work with Electron","user":{"login":"jean-emmanuel","id":5261671,"avatar_url":"https://avatars.githubusercontent.com/u/5261671?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-emmanuel","html_url":"https://github.com/jean-emmanuel","followers_url":"https://api.github.com/users/jean-emmanuel/followers","following_url":"https://api.github.com/users/jean-emmanuel/following{/other_user}","gists_url":"https://api.github.com/users/jean-emmanuel/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-emmanuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-emmanuel/subscriptions","organizations_url":"https://api.github.com/users/jean-emmanuel/orgs","repos_url":"https://api.github.com/users/jean-emmanuel/repos","events_url":"https://api.github.com/users/jean-emmanuel/events{/privacy}","received_events_url":"https://api.github.com/users/jean-emmanuel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-14T04:52:46Z","updated_at":"2016-10-14T04:52:46Z","closed_at":null,"body":"Since serialport doesn't work in Electron, here's a hack / workaround for those who actually don't use serial port transport with ocs.js. One just need to add one dependency, `vmodule` and use it to override the `serialport` module with an empty one before requiring the `osc` module : \r\n\r\n```js\r\nvar vmodule = require('vmodule')\r\n\r\nvmodule('serialport', {}, {global: true})\r\n\r\nvar osc = require('osc') // This would normally fail under Electron\r\n```"}}
{"actor":{"display_login":"jean-emmanuel"}}