{"action":"created","comment":{"url":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/comments/238913708","pull_request_review_id":181570374,"id":238913708,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODkxMzcwOA==","diff_hunk":"@@ -99,6 +100,17 @@ rec.stop()\n \n **stop** will cease capturing audio and disable the monitoring and mic input stream. Will request the recorded data and then terminate the worker once the final data has been published. Will call the `onstop` callback when stopped.\n \n+```js\n+rec.destroy()\n+```\n+\n+**destroy** will destroy the worker freeing up the browser resources. If the recorder is re-started, a new worker will be created. Note that `destroy` is automatically called when stopping unless `reuseWorker` is true.","path":"README.md","position":16,"original_position":16,"commit_id":"d7e7d11b57a35cbcaf524f19a813c5e01e3df2ab","original_commit_id":"d7e7d11b57a35cbcaf524f19a813c5e01e3df2ab","user":{"login":"chris-rudmin","id":506755,"node_id":"MDQ6VXNlcjUwNjc1NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/506755?v=4","gravatar_id":"","url":"https://api.github.com/users/chris-rudmin","html_url":"https://github.com/chris-rudmin","followers_url":"https://api.github.com/users/chris-rudmin/followers","following_url":"https://api.github.com/users/chris-rudmin/following{/other_user}","gists_url":"https://api.github.com/users/chris-rudmin/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-rudmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-rudmin/subscriptions","organizations_url":"https://api.github.com/users/chris-rudmin/orgs","repos_url":"https://api.github.com/users/chris-rudmin/repos","events_url":"https://api.github.com/users/chris-rudmin/events{/privacy}","received_events_url":"https://api.github.com/users/chris-rudmin/received_events","type":"User","site_admin":false},"body":"how about `destroyWorker`?","created_at":"2018-12-05T02:33:44Z","updated_at":"2018-12-05T02:40:44Z","html_url":"https://github.com/chris-rudmin/opus-recorder/pull/174#discussion_r238913708","pull_request_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/comments/238913708"},"html":{"href":"https://github.com/chris-rudmin/opus-recorder/pull/174#discussion_r238913708"},"pull_request":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174"}}},"pull_request":{"url":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174","id":235460709,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NDYwNzA5","html_url":"https://github.com/chris-rudmin/opus-recorder/pull/174","diff_url":"https://github.com/chris-rudmin/opus-recorder/pull/174.diff","patch_url":"https://github.com/chris-rudmin/opus-recorder/pull/174.patch","issue_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/issues/174","number":174,"state":"open","locked":false,"title":" Support reuse of the worker","user":{"login":"tomwidmer","id":1503640,"node_id":"MDQ6VXNlcjE1MDM2NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1503640?v=4","gravatar_id":"","url":"https://api.github.com/users/tomwidmer","html_url":"https://github.com/tomwidmer","followers_url":"https://api.github.com/users/tomwidmer/followers","following_url":"https://api.github.com/users/tomwidmer/following{/other_user}","gists_url":"https://api.github.com/users/tomwidmer/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwidmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwidmer/subscriptions","organizations_url":"https://api.github.com/users/tomwidmer/orgs","repos_url":"https://api.github.com/users/tomwidmer/repos","events_url":"https://api.github.com/users/tomwidmer/events{/privacy}","received_events_url":"https://api.github.com/users/tomwidmer/received_events","type":"User","site_admin":false},"body":"* Added destroy and loadWorker methods\r\n* Reduces (re)start latency since WASM is not re-loaded\r\n\r\nNote that this builds on the ","created_at":"2018-12-03T14:11:51Z","updated_at":"2018-12-05T02:40:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60dbb0838f0dbcc624d24fa104e9a53c4b1070e7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174/commits","review_comments_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174/comments","review_comment_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/issues/174/comments","statuses_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/statuses/d7e7d11b57a35cbcaf524f19a813c5e01e3df2ab","head":{"label":"tomwidmer:feature/reuse","ref":"feature/reuse","sha":"d7e7d11b57a35cbcaf524f19a813c5e01e3df2ab","user":{"login":"tomwidmer","id":1503640,"node_id":"MDQ6VXNlcjE1MDM2NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1503640?v=4","gravatar_id":"","url":"https://api.github.com/users/tomwidmer","html_url":"https://github.com/tomwidmer","followers_url":"https://api.github.com/users/tomwidmer/followers","following_url":"https://api.github.com/users/tomwidmer/following{/other_user}","gists_url":"https://api.github.com/users/tomwidmer/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwidmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwidmer/subscriptions","organizations_url":"https://api.github.com/users/tomwidmer/orgs","repos_url":"https://api.github.com/users/tomwidmer/repos","events_url":"https://api.github.com/users/tomwidmer/events{/privacy}","received_events_url":"https://api.github.com/users/tomwidmer/received_events","type":"User","site_admin":false},"repo":{"id":158535955,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1MzU5NTU=","name":"opus-recorder","full_name":"tomwidmer/opus-recorder","private":false,"owner":{"login":"tomwidmer","id":1503640,"node_id":"MDQ6VXNlcjE1MDM2NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/1503640?v=4","gravatar_id":"","url":"https://api.github.com/users/tomwidmer","html_url":"https://github.com/tomwidmer","followers_url":"https://api.github.com/users/tomwidmer/followers","following_url":"https://api.github.com/users/tomwidmer/following{/other_user}","gists_url":"https://api.github.com/users/tomwidmer/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwidmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwidmer/subscriptions","organizations_url":"https://api.github.com/users/tomwidmer/orgs","repos_url":"https://api.github.com/users/tomwidmer/repos","events_url":"https://api.github.com/users/tomwidmer/events{/privacy}","received_events_url":"https://api.github.com/users/tomwidmer/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tomwidmer/opus-recorder","description":"A library for encoding and decoding web audio as OggOpus.","fork":true,"url":"https://api.github.com/repos/tomwidmer/opus-recorder","forks_url":"https://api.github.com/repos/tomwidmer/opus-recorder/forks","keys_url":"https://api.github.com/repos/tomwidmer/opus-recorder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomwidmer/opus-recorder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomwidmer/opus-recorder/teams","hooks_url":"https://api.github.com/repos/tomwidmer/opus-recorder/hooks","issue_events_url":"https://api.github.com/repos/tomwidmer/opus-recorder/issues/events{/number}","events_url":"https://api.github.com/repos/tomwidmer/opus-recorder/events","assignees_url":"https://api.github.com/repos/tomwidmer/opus-recorder/assignees{/user}","branches_url":"https://api.github.com/repos/tomwidmer/opus-recorder/branches{/branch}","tags_url":"https://api.github.com/repos/tomwidmer/opus-recorder/tags","blobs_url":"https://api.github.com/repos/tomwidmer/opus-recorder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomwidmer/opus-recorder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomwidmer/opus-recorder/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomwidmer/opus-recorder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomwidmer/opus-recorder/statuses/{sha}","languages_url":"https://api.github.com/repos/tomwidmer/opus-recorder/languages","stargazers_url":"https://api.github.com/repos/tomwidmer/opus-recorder/stargazers","contributors_url":"https://api.github.com/repos/tomwidmer/opus-recorder/contributors","subscribers_url":"https://api.github.com/repos/tomwidmer/opus-recorder/subscribers","subscription_url":"https://api.github.com/repos/tomwidmer/opus-recorder/subscription","commits_url":"https://api.github.com/repos/tomwidmer/opus-recorder/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomwidmer/opus-recorder/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomwidmer/opus-recorder/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomwidmer/opus-recorder/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomwidmer/opus-recorder/contents/{+path}","compare_url":"https://api.github.com/repos/tomwidmer/opus-recorder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomwidmer/opus-recorder/merges","archive_url":"https://api.github.com/repos/tomwidmer/opus-recorder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomwidmer/opus-recorder/downloads","issues_url":"https://api.github.com/repos/tomwidmer/opus-recorder/issues{/number}","pulls_url":"https://api.github.com/repos/tomwidmer/opus-recorder/pulls{/number}","milestones_url":"https://api.github.com/repos/tomwidmer/opus-recorder/milestones{/number}","notifications_url":"https://api.github.com/repos/tomwidmer/opus-recorder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomwidmer/opus-recorder/labels{/name}","releases_url":"https://api.github.com/repos/tomwidmer/opus-recorder/releases{/id}","deployments_url":"https://api.github.com/repos/tomwidmer/opus-recorder/deployments","created_at":"2018-11-21T11:12:35Z","updated_at":"2018-11-21T11:12:37Z","pushed_at":"2018-12-03T14:09:16Z","git_url":"git://github.com/tomwidmer/opus-recorder.git","ssh_url":"git@github.com:tomwidmer/opus-recorder.git","clone_url":"https://github.com/tomwidmer/opus-recorder.git","svn_url":"https://github.com/tomwidmer/opus-recorder","homepage":"","size":12242,"stargazers_count":0,"watchers_count":0,"language":"WebAssembly","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chris-rudmin:stream-incoming","ref":"stream-incoming","sha":"b2074dbf2209d1a8c038bbbb9c61598c9afb7026","user":{"login":"chris-rudmin","id":506755,"node_id":"MDQ6VXNlcjUwNjc1NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/506755?v=4","gravatar_id":"","url":"https://api.github.com/users/chris-rudmin","html_url":"https://github.com/chris-rudmin","followers_url":"https://api.github.com/users/chris-rudmin/followers","following_url":"https://api.github.com/users/chris-rudmin/following{/other_user}","gists_url":"https://api.github.com/users/chris-rudmin/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-rudmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-rudmin/subscriptions","organizations_url":"https://api.github.com/users/chris-rudmin/orgs","repos_url":"https://api.github.com/users/chris-rudmin/repos","events_url":"https://api.github.com/users/chris-rudmin/events{/privacy}","received_events_url":"https://api.github.com/users/chris-rudmin/received_events","type":"User","site_admin":false},"repo":{"id":23680758,"node_id":"MDEwOlJlcG9zaXRvcnkyMzY4MDc1OA==","name":"opus-recorder","full_name":"chris-rudmin/opus-recorder","private":false,"owner":{"login":"chris-rudmin","id":506755,"node_id":"MDQ6VXNlcjUwNjc1NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/506755?v=4","gravatar_id":"","url":"https://api.github.com/users/chris-rudmin","html_url":"https://github.com/chris-rudmin","followers_url":"https://api.github.com/users/chris-rudmin/followers","following_url":"https://api.github.com/users/chris-rudmin/following{/other_user}","gists_url":"https://api.github.com/users/chris-rudmin/gists{/gist_id}","starred_url":"https://api.github.com/users/chris-rudmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chris-rudmin/subscriptions","organizations_url":"https://api.github.com/users/chris-rudmin/orgs","repos_url":"https://api.github.com/users/chris-rudmin/repos","events_url":"https://api.github.com/users/chris-rudmin/events{/privacy}","received_events_url":"https://api.github.com/users/chris-rudmin/received_events","type":"User","site_admin":false},"html_url":"https://github.com/chris-rudmin/opus-recorder","description":"A library for encoding and decoding web audio as OggOpus.","fork":true,"url":"https://api.github.com/repos/chris-rudmin/opus-recorder","forks_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/forks","keys_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/teams","hooks_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/hooks","issue_events_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/issues/events{/number}","events_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/events","assignees_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/assignees{/user}","branches_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/branches{/branch}","tags_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/tags","blobs_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/git/refs{/sha}","trees_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/statuses/{sha}","languages_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/languages","stargazers_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/stargazers","contributors_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/contributors","subscribers_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/subscribers","subscription_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/subscription","commits_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/commits{/sha}","git_commits_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/git/commits{/sha}","comments_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/comments{/number}","issue_comment_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/issues/comments{/number}","contents_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/contents/{+path}","compare_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/merges","archive_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/downloads","issues_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/issues{/number}","pulls_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls{/number}","milestones_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/milestones{/number}","notifications_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/labels{/name}","releases_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/releases{/id}","deployments_url":"https://api.github.com/repos/chris-rudmin/opus-recorder/deployments","created_at":"2014-09-04T21:53:08Z","updated_at":"2018-12-04T00:49:32Z","pushed_at":"2018-12-03T14:11:52Z","git_url":"git://github.com/chris-rudmin/opus-recorder.git","ssh_url":"git@github.com:chris-rudmin/opus-recorder.git","clone_url":"https://github.com/chris-rudmin/opus-recorder.git","svn_url":"https://github.com/chris-rudmin/opus-recorder","homepage":"","size":12192,"stargazers_count":495,"watchers_count":495,"language":"WebAssembly","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":86,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":86,"open_issues":9,"watchers":495,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174"},"html":{"href":"https://github.com/chris-rudmin/opus-recorder/pull/174"},"issue":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/issues/174"},"comments":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/issues/174/comments"},"review_comments":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174/comments"},"review_comment":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/pulls/174/commits"},"statuses":{"href":"https://api.github.com/repos/chris-rudmin/opus-recorder/statuses/d7e7d11b57a35cbcaf524f19a813c5e01e3df2ab"}},"author_association":"NONE"}}
{"actor":{"display_login":"chris-rudmin"}}