{"id":19844340,"url":"https://github.com/jungdu/rtc-socket-connector-server","last_synced_at":"2025-10-12T14:09:50.418Z","repository":{"id":106140609,"uuid":"438331331","full_name":"jungdu/rtc-socket-connector-server","owner":"jungdu","description":"A library on the server-side for establishing WebRTC connection.   ","archived":false,"fork":false,"pushed_at":"2023-11-27T14:50:34.000Z","size":76,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-12T14:09:19.583Z","etag":null,"topics":["express","nodejs","socket-io","webrtc"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jungdu.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,"zenodo":null}},"created_at":"2021-12-14T16:53:14.000Z","updated_at":"2023-01-14T09:36:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"6092e10c-3416-4fa3-b607-c75af59759a6","html_url":"https://github.com/jungdu/rtc-socket-connector-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jungdu/rtc-socket-connector-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungdu%2Frtc-socket-connector-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungdu%2Frtc-socket-connector-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungdu%2Frtc-socket-connector-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungdu%2Frtc-socket-connector-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jungdu","download_url":"https://codeload.github.com/jungdu/rtc-socket-connector-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jungdu%2Frtc-socket-connector-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011544,"owners_count":26084963,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["express","nodejs","socket-io","webrtc"],"created_at":"2024-11-12T13:03:35.564Z","updated_at":"2025-10-12T14:09:50.412Z","avatar_url":"https://github.com/jungdu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rtc-socket-connector-server\n\nrtc-socket-connector-server is library for WebRTC connection.  \nThis library used with [**rtc-socket-connector-client**]([r](https://github.com/jungdu/rtc-socket-connector-client))  \nIt is easy to use WebRTC with **rtc-socket-connector-server** and [**rtc-socket-connector-client**](https://github.com/jungdu/rtc-socket-connector-client).  \n**Example using this library**: [rtc-socket-connector-example](https://github.com/jungdu/rtc-socket-connector-example)\n\n\n# How to use\n\n### 1. Create socket server  \nTo use rtc-socket-connector-server, you need socket server.\nCreate a socket server through the process below.\n```javascript\nconst express = require('express');\nconst app = express();\nconst http = require('http');\nconst server = http.createServer(app);\nconst { Server } = require(\"socket.io\");\nconst socketServer = new Server(server);\n```\n\n### 2. add handlers to Socket Server\n\nUse **addRTCConnectionHandlers** to handle socket messages form client.\n\n```javascript\nconst { addRTCConnectionHandlers } = require(\"rtc-socket-connector-server\")\n\naddRTCConnectionHandler(socketServer});\n```\n\n### 3. Start the server\nRun script file to run express server.  \nA client will send socket messages to the express server.\nThe express server will send messages from a client to target client.\n\n\n# API\n\n### addRTCConnectionHandler(server, option)\n**Arguments**\n- server: Socket server created by using socket.io\n- option\n  - debug```\u003cboolean\u003e```: Set ```true``` to log messages for initiating peer connections and ICE candidates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungdu%2Frtc-socket-connector-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjungdu%2Frtc-socket-connector-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungdu%2Frtc-socket-connector-server/lists"}