{"action":"created","issue":{"url":"https://api.github.com/repos/asvd/jailed/issues/27","repository_url":"https://api.github.com/repos/asvd/jailed","labels_url":"https://api.github.com/repos/asvd/jailed/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/asvd/jailed/issues/27/comments","events_url":"https://api.github.com/repos/asvd/jailed/issues/27/events","html_url":"https://github.com/asvd/jailed/issues/27","id":139622286,"number":27,"title":"Plugin disconnects but nothing happens","user":{"login":"florianb","id":983507,"avatar_url":"https://avatars.githubusercontent.com/u/983507?v=3","gravatar_id":"","url":"https://api.github.com/users/florianb","html_url":"https://github.com/florianb","followers_url":"https://api.github.com/users/florianb/followers","following_url":"https://api.github.com/users/florianb/following{/other_user}","gists_url":"https://api.github.com/users/florianb/gists{/gist_id}","starred_url":"https://api.github.com/users/florianb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florianb/subscriptions","organizations_url":"https://api.github.com/users/florianb/orgs","repos_url":"https://api.github.com/users/florianb/repos","events_url":"https://api.github.com/users/florianb/events{/privacy}","received_events_url":"https://api.github.com/users/florianb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-09T16:13:24Z","updated_at":"2016-03-09T16:28:53Z","closed_at":null,"body":"Hi - i am still trying to get jailed up and running in the Electron-environment (Node 5.1.1, Chrome 47.0.2526.110, Electron 0.36.9) and feel i make no progress. I am using the following code from within my app for debugging purposes:\r\n\r\n```\r\n  var api = {\r\n    alert: alert\r\n  };\r\n\r\n  var code = \"application.remote.alert('Hello from the plugin!');\";\r\n  var plugin = new jailed.DynamicPlugin(code, api);\r\n\r\n  plugin.whenConnected(function() {\r\n    console.info('plugin connected..');\r\n  });\r\n\r\n  plugin.whenDisconnected(function() {\r\n    console.info('plugin disconnected..');\r\n  });\r\n\r\n  plugin.whenFailed(function() {\r\n    console.info('plugin failed..');\r\n  });\r\n```\r\n\r\nThis returns `plugin disconnected..` which let me assume that the plugin code should be run. However, the alert is not being invoked as well as any Api-calls (i tried to pass variables as well, binding `this`).\r\n\r\nA debugging attempt -- running the commands by hand from the console -- failed completely with an `Uncaught TypeError: this._connect is not a function` in jailed.js:612.\r\n\r\nI really appreciate any hint. Thanks in advance - :cake: :coffee: "},"comment":{"url":"https://api.github.com/repos/asvd/jailed/issues/comments/194378753","html_url":"https://github.com/asvd/jailed/issues/27#issuecomment-194378753","issue_url":"https://api.github.com/repos/asvd/jailed/issues/27","id":194378753,"user":{"login":"asvd","id":4825176,"avatar_url":"https://avatars.githubusercontent.com/u/4825176?v=3","gravatar_id":"","url":"https://api.github.com/users/asvd","html_url":"https://github.com/asvd","followers_url":"https://api.github.com/users/asvd/followers","following_url":"https://api.github.com/users/asvd/following{/other_user}","gists_url":"https://api.github.com/users/asvd/gists{/gist_id}","starred_url":"https://api.github.com/users/asvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asvd/subscriptions","organizations_url":"https://api.github.com/users/asvd/orgs","repos_url":"https://api.github.com/users/asvd/repos","events_url":"https://api.github.com/users/asvd/events{/privacy}","received_events_url":"https://api.github.com/users/asvd/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T16:28:53Z","updated_at":"2016-03-09T16:28:53Z","body":"Looks like a bug in Jailed, I will have to investigate on this by installing Electron.\r\n\r\nThe disconnect event should not fire first, upon connection it fires either connection event, or failure.."}}