{"action":"opened","issue":{"url":"https://api.github.com/repos/maxogden/websocket-stream/issues/119","repository_url":"https://api.github.com/repos/maxogden/websocket-stream","labels_url":"https://api.github.com/repos/maxogden/websocket-stream/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/maxogden/websocket-stream/issues/119/comments","events_url":"https://api.github.com/repos/maxogden/websocket-stream/issues/119/events","html_url":"https://github.com/maxogden/websocket-stream/issues/119","id":225669738,"number":119,"title":"Slightly cooler API","user":{"login":"brettz9","id":20234,"avatar_url":"https://avatars0.githubusercontent.com/u/20234?v=3","gravatar_id":"","url":"https://api.github.com/users/brettz9","html_url":"https://github.com/brettz9","followers_url":"https://api.github.com/users/brettz9/followers","following_url":"https://api.github.com/users/brettz9/following{/other_user}","gists_url":"https://api.github.com/users/brettz9/gists{/gist_id}","starred_url":"https://api.github.com/users/brettz9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettz9/subscriptions","organizations_url":"https://api.github.com/users/brettz9/orgs","repos_url":"https://api.github.com/users/brettz9/repos","events_url":"https://api.github.com/users/brettz9/events{/privacy}","received_events_url":"https://api.github.com/users/brettz9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-02T11:38:53Z","updated_at":"2017-05-02T11:38:53Z","closed_at":null,"body":"How about allowing the handler to be checked for a return (stream) value?\r\n\r\n```js\r\nvar wss = websocket.createServer({\r\n    server: someHTTPServer\r\n}, () => fs.createReadStream('bigdata.json'))\r\n```"}}
{"actor":{"display_login":"brettz9"}}