{"id":14978160,"url":"https://github.com/socketio/socket.io-echo-server","last_synced_at":"2025-10-19T11:30:47.339Z","repository":{"id":65978741,"uuid":"389891058","full_name":"socketio/socket.io-echo-server","owner":"socketio","description":"Socket.IO echo server","archived":false,"fork":false,"pushed_at":"2023-05-15T19:16:42.000Z","size":10,"stargazers_count":5,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T13:11:22.402Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/socketio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-07-27T07:38:44.000Z","updated_at":"2025-01-08T23:45:03.000Z","dependencies_parsed_at":"2024-01-23T21:29:53.763Z","dependency_job_id":"7302c5a6-f1a5-43be-8f40-e106d0e49ce2","html_url":"https://github.com/socketio/socket.io-echo-server","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/socketio%2Fsocket.io-echo-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-echo-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-echo-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketio%2Fsocket.io-echo-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socketio","download_url":"https://codeload.github.com/socketio/socket.io-echo-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237116660,"owners_count":19258291,"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-09-24T13:56:57.989Z","updated_at":"2025-10-19T11:30:41.861Z","avatar_url":"https://github.com/socketio.png","language":"JavaScript","readme":"\n## Socket.IO echo server\n\n```\n$ npm install           # install the dependencies\n$ npm start             # run the server\n```\n\nOptional environment variables:\n\n| Variable        | Description                                                                    |\n|-----------------|--------------------------------------------------------------------------------|\n| `ALLOW_EIO3`    | Enable compatibility with Socket.IO v2 clients                                 |\n| `ALLOW_CORS`    | Allow Cross-Origin Resource Sharing (CORS) from all origins                    |\n| `ALLOW_ADMINUI` | Instrument the server for usage with [the Admin UI](https://admin.socket.io/). |\n\n*Client*\n\n```js\nconst { io } = require(\"socket.io-client\");\n\nconst socket = io(\"ws://localhost:3000\");\n\n// basic emit\nsocket.emit(\"ping\", 1, \"2\");\n\n// response listener\nsocket.onAny((...args) =\u003e {\n  console.log(args); // prints [ 'ping', 1, '2' ]\n});\n\n// with an acknowledgement\nsocket.emit(\"ack\", 3, \"4\", (...args) =\u003e {\n  console.log(args); // prints [ 'ack', 3, '4' ]\n})\n```\n\nWe purposely did not implement anything related to broadcasting and rooms, as it could easily be abused.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocketio%2Fsocket.io-echo-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocketio%2Fsocket.io-echo-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocketio%2Fsocket.io-echo-server/lists"}