{"action":"opened","issue":{"url":"https://api.github.com/repos/kanaka/websockify/issues/252","repository_url":"https://api.github.com/repos/kanaka/websockify","labels_url":"https://api.github.com/repos/kanaka/websockify/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/kanaka/websockify/issues/252/comments","events_url":"https://api.github.com/repos/kanaka/websockify/issues/252/events","html_url":"https://github.com/kanaka/websockify/issues/252","id":182890986,"number":252,"title":"Expose javascript API","user":{"login":"kevinhikaruevans","id":4730591,"avatar_url":"https://avatars.githubusercontent.com/u/4730591?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinhikaruevans","html_url":"https://github.com/kevinhikaruevans","followers_url":"https://api.github.com/users/kevinhikaruevans/followers","following_url":"https://api.github.com/users/kevinhikaruevans/following{/other_user}","gists_url":"https://api.github.com/users/kevinhikaruevans/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinhikaruevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinhikaruevans/subscriptions","organizations_url":"https://api.github.com/users/kevinhikaruevans/orgs","repos_url":"https://api.github.com/users/kevinhikaruevans/repos","events_url":"https://api.github.com/users/kevinhikaruevans/events{/privacy}","received_events_url":"https://api.github.com/users/kevinhikaruevans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-13T20:22:50Z","updated_at":"2016-10-13T20:22:50Z","closed_at":null,"body":"It'd be nice if there was an API exported from the javascript version.\r\n\r\nI'd like to just do something like:\r\n\r\n```\r\nvar websockify = require('websockify');\r\n\r\nwebsockify.start({\r\n   destinationPort: 4567,\r\n   sourcePort: 1234\r\n});\r\n```\r\n\r\nIn es5 notation, you can just do something like:\r\n\r\n`module.exports = someObjectToExpose`"}}
{"actor":{"display_login":"kevinhikaruevans"}}