{"id":18724688,"url":"https://github.com/theanishtar/chatweb-peerjs","last_synced_at":"2025-08-31T21:32:00.131Z","repository":{"id":226889653,"uuid":"769894442","full_name":"theanishtar/chatweb-peerjs","owner":"theanishtar","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-11T07:53:30.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-07T14:07:28.380Z","etag":null,"topics":["firebase","peerjs","video-call","web-rtc"],"latest_commit_sha":null,"homepage":"","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/theanishtar.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}},"created_at":"2024-03-10T11:19:52.000Z","updated_at":"2024-04-17T09:19:52.000Z","dependencies_parsed_at":"2024-03-10T12:33:03.566Z","dependency_job_id":"3b5938ac-59c3-400d-b51d-59bbde4ef6fa","html_url":"https://github.com/theanishtar/chatweb-peerjs","commit_stats":null,"previous_names":["theanishtar/chatweb-peerjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theanishtar%2Fchatweb-peerjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theanishtar%2Fchatweb-peerjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theanishtar%2Fchatweb-peerjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theanishtar%2Fchatweb-peerjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theanishtar","download_url":"https://codeload.github.com/theanishtar/chatweb-peerjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231627423,"owners_count":18402609,"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":["firebase","peerjs","video-call","web-rtc"],"created_at":"2024-11-07T14:07:31.414Z","updated_at":"2024-12-28T13:12:59.775Z","avatar_url":"https://github.com/theanishtar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# VideoCall_PeerJS\r\n﻿# VideoCall_PeerJS\r\n\r\n## Luồng xử lý\r\n\r\n- User gửi một `request` đến Server gồm các thông tin cơ bản như:\r\n    - `calling-id: (int)`: gửi cuộc gọi đến cho ai\r\n    - `caller-id: (int)` : người nào gửi cuộc gọi\r\n    - `call-room-token (String)`: token phòng chat\r\n- Khi server nhận được thông tin sẽ trả về cho `caller` một thông báo rằng đang thực hiện gọi đến `calling`. Đồng thời sẽ gửi thông báo cho `calling` rằng có người gọi đến\r\n- Khi `calling` nhận được thông báo thực hiện [join]() vào phòng chat video `call-room-token`:\r\n- Khi một trong hai thoát khỏi phòng chat video, client sẽ gửi thông tin lên server để tiến hành `destroy` id phòng chat đó.\r\n\r\nVí dụ cụ thể:\r\n\r\ndangth calling nhuomtv...\r\n\r\ndangth request to server:\r\n\r\n```js\r\nbody\r\n------\r\n{\r\n    calling-id: 1,  // id user được gọi\r\n    caller-id: 2    // id user thực hiện gọi \u0026 id phòng chat\r\n    call-room-token: 12\r\n}\r\n```\r\n\r\nserver xử lý:\r\n- Send socket to user có id là `1`: `Fullname` đang gọi...\r\n- Send socket to user có id là `2`: Đang gọi `Fullname`....\r\n\r\nCalling xử lý:\r\n- Join vào room có id là `2`\r\n\r\n## Công nghệ \r\n- WebRTC\r\n- PeerJS\r\n- StockJS/StomJS\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheanishtar%2Fchatweb-peerjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheanishtar%2Fchatweb-peerjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheanishtar%2Fchatweb-peerjs/lists"}