{"id":15818808,"url":"https://github.com/fmalcher/webrtc-minimal-example","last_synced_at":"2026-02-09T23:32:10.909Z","repository":{"id":77295964,"uuid":"46756918","full_name":"fmalcher/webrtc-minimal-example","owner":"fmalcher","description":"A minimal WebRTC example","archived":false,"fork":false,"pushed_at":"2017-06-27T10:16:07.000Z","size":212,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T14:55:27.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/fmalcher.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":"2015-11-24T00:34:43.000Z","updated_at":"2021-10-12T07:13:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"dd4a0640-c7ba-44e2-a803-8484f45276c5","html_url":"https://github.com/fmalcher/webrtc-minimal-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fmalcher/webrtc-minimal-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmalcher%2Fwebrtc-minimal-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmalcher%2Fwebrtc-minimal-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmalcher%2Fwebrtc-minimal-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmalcher%2Fwebrtc-minimal-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fmalcher","download_url":"https://codeload.github.com/fmalcher/webrtc-minimal-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fmalcher%2Fwebrtc-minimal-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29285817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T21:57:15.303Z","status":"ssl_error","status_checked_at":"2026-02-09T21:57:11.537Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-05T06:20:19.353Z","updated_at":"2026-02-09T23:32:10.891Z","avatar_url":"https://github.com/fmalcher.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webrtc-minimal-example\n\nThis is a very basic example for audio/video communication between two browsers.\nIt shall demonstrate how the WebRTC API works.\n\nThe example uses [SimpleMS](https://github.com/fmalcher/webrtc-simplems) as messaging server.\nFeel free to fork or contribute! :smile:\n\n\u003e **It's a basic example! Error handling and features beyond basic communication have been dropped intentionally!**\n\n\n\n\n\n\n\n# Getting Started (Example for Debian)\n\n\nInstall Node.js for the WebSocket server and a simple web server that serves the client app.\n\n```\nsudo apt-get install nodejs nodejs-legacy\nsudo npm install -g http-server\n```\n\n\nClone the repository.\n```\ngit clone https://github.com/fmalcher/webrtc-minimal-example.git\ncd webrtc-minimal-example\n```\n\n\nEdit the addresses in `helpers.js`:\n\n* URL of the simplems server (`WEBSOCKET_URL`)\n* URLs of STUN/TURN servers (in `RTCPC_CONFIG`) \n\n```\n$EDITOR helpers.js\n```\n\n\nStart the webserver.\n```\nhttp-server -S -K key.pem -C cert.pem\n```\n\n\nOpen another terminal and clone and start the messaging server.\n```\ngit clone https://github.com/fmalcher/webrtc-simplems.git\ncd webrtc-simplems\nnpm install\nnode server.js\n```\n\nOpen your Browser and go to `http://127.0.0.1:8080/`. You will see an error like in this picture after hitting F12.\n![Image of an error](error.png)\n\nGo ahead and open this URL in a new tab: `https://127.0.0.1:1337/` and confirm the security exception.\n![Image of an error](sec.png)\n\n\nDon't worry, in this case it is local connection to your own computer.\nThe page will try to load but nothing will happen so close it. Reload the tab `http://127.0.0.1:8080/` again (F5). Then open another tab and type the same URL in. The rest is too simple to explain it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmalcher%2Fwebrtc-minimal-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffmalcher%2Fwebrtc-minimal-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffmalcher%2Fwebrtc-minimal-example/lists"}