{"id":21885587,"url":"https://github.com/sheraff/webrtc-demo","last_synced_at":"2026-05-19T04:40:28.089Z","repository":{"id":81102182,"uuid":"287410258","full_name":"Sheraff/webRTC-demo","owner":"Sheraff","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-14T11:24:10.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T19:51:53.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://webrtc.florianpellet.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sheraff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-14T00:52:31.000Z","updated_at":"2021-09-22T15:26:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"af8d50ec-90b7-4b0b-b322-eb0e46a912a0","html_url":"https://github.com/Sheraff/webRTC-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheraff%2FwebRTC-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheraff%2FwebRTC-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheraff%2FwebRTC-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheraff%2FwebRTC-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sheraff","download_url":"https://codeload.github.com/Sheraff/webRTC-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244894307,"owners_count":20527669,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T10:28:09.536Z","updated_at":"2026-05-19T04:40:23.068Z","avatar_url":"https://github.com/Sheraff.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webRTC-demo\n\n1. Serve files w/ a php server. For local use:\n\n``` bash\nphp -S localhost:5000\n```\n\n2. Open a first client\n\n``` javascript\nconst rtcClient1 = new RTCPeer('some-id-1')\nrtcClient1.startHosting('some-id-2')\n```\n\n3. open a second client\n\n``` javascript\nconst rtcClient2 = new RTCPeer('some-id-2')\nrtcClient2.joinHost('some-id-1')\n```\n\nThe order of operations shouldn't matter.\n\n----\n\nYou can also do everything in the same client but it's less fun\n\n``` javascript\nconst rtcClient1 = new RTCPeer('some-id-1')\nconst rtcClient2 = new RTCPeer('some-id-2')\nrtcClient1.startHosting('some-id-2')\nrtcClient2.joinHost('some-id-1')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheraff%2Fwebrtc-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheraff%2Fwebrtc-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheraff%2Fwebrtc-demo/lists"}