{"id":19244874,"url":"https://github.com/hrishiksh/flutter_webrtc_websocket","last_synced_at":"2025-06-13T08:33:19.942Z","repository":{"id":52188374,"uuid":"520820780","full_name":"hrishiksh/flutter_webrtc_websocket","owner":"hrishiksh","description":"Demonstration of flutter webRTC and websocket implementation.","archived":false,"fork":false,"pushed_at":"2022-08-05T11:49:09.000Z","size":201,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T09:52:22.624Z","etag":null,"topics":["flutter","webrtc","webrtc-demos","webrtc-signaling","websocket","websocket-client"],"latest_commit_sha":null,"homepage":"","language":"C++","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/hrishiksh.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}},"created_at":"2022-08-03T09:41:34.000Z","updated_at":"2025-04-16T20:11:51.000Z","dependencies_parsed_at":"2022-08-24T00:50:14.366Z","dependency_job_id":null,"html_url":"https://github.com/hrishiksh/flutter_webrtc_websocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hrishiksh/flutter_webrtc_websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrishiksh%2Fflutter_webrtc_websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrishiksh%2Fflutter_webrtc_websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrishiksh%2Fflutter_webrtc_websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrishiksh%2Fflutter_webrtc_websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrishiksh","download_url":"https://codeload.github.com/hrishiksh/flutter_webrtc_websocket/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrishiksh%2Fflutter_webrtc_websocket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259610260,"owners_count":22884231,"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":["flutter","webrtc","webrtc-demos","webrtc-signaling","websocket","websocket-client"],"created_at":"2024-11-09T17:25:36.540Z","updated_at":"2025-06-13T08:33:19.920Z","avatar_url":"https://github.com/hrishiksh.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_webrtc_websocket\n\nDemonstration of flutter webRTC and websocket implementation.\n\nFor WebRTC, I use [flutter_webrtc](https://pub.dev/packages/flutter_webrtc) and for websocket [web_socket_channel](https://pub.dev/packages/web_socket_channel) is used.\n\nFor server websocket, I use nodejs with [ws](https://github.com/websockets/ws) library.\n\nhttps://user-images.githubusercontent.com/52790353/182588642-975a8187-0343-4757-bb60-5aec3af1afd1.mp4\n\n## Server code\n\nTo make your own server run this code with `nodejs`. It create a websocket server in port 8080.\n\n```js\nimport { WebSocket, WebSocketServer } from \"ws\";\n\nconst wss = new WebSocketServer({ port: 8080 });\n\nwss.on(\"connection\", (ws) =\u003e {\n  ws.send('{\"event\":\"connection\",\"data\":\"connected\"}');\n  ws.on(\"message\", (data, isbinary) =\u003e {\n    // Broadcasting to other client except sender\n    wss.clients.forEach((client) =\u003e {\n      if (client != ws \u0026\u0026 client.readyState == WebSocket.OPEN) {\n        client.send(data, { binary: false });\n      }\n    });\n  });\n});\n```\n\nRead [this article]() to get a good grasp about working of the code.\n\n\u003e **Warning**: I haven't added android and IOS specific code. So this app runs only on web. Please add android persmissions in `android-menifest.xml` file. For more, please see the `flutter_webrtc` getting started guide.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrishiksh%2Fflutter_webrtc_websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrishiksh%2Fflutter_webrtc_websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrishiksh%2Fflutter_webrtc_websocket/lists"}