{"id":15942271,"url":"https://github.com/discretetom/ws-server","last_synced_at":"2025-04-03T21:17:05.405Z","repository":{"id":143272139,"uuid":"615128359","full_name":"DiscreteTom/ws-server","owner":"DiscreteTom","description":"A CLI tool to start a WebSocket debug server using NodeJS.","archived":false,"fork":false,"pushed_at":"2023-08-18T08:14:15.000Z","size":161,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-09T13:19:45.290Z","etag":null,"topics":["cli","nodejs","websocket","ws","wscat"],"latest_commit_sha":null,"homepage":"","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/DiscreteTom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-17T02:21:47.000Z","updated_at":"2023-03-18T02:26:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"f062e774-1029-4dda-aa9e-43f5f072f921","html_url":"https://github.com/DiscreteTom/ws-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/DiscreteTom%2Fws-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fws-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fws-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fws-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiscreteTom","download_url":"https://codeload.github.com/DiscreteTom/ws-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078867,"owners_count":20879953,"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":["cli","nodejs","websocket","ws","wscat"],"created_at":"2024-10-07T07:40:50.970Z","updated_at":"2025-04-03T21:17:05.385Z","avatar_url":"https://github.com/DiscreteTom.png","language":"JavaScript","readme":"# ws-server\n\n[![npm](https://img.shields.io/npm/v/@discretetom/ws-server?style=flat-square)](https://www.npmjs.com/package/@discretetom/ws-server)\n![NPM](https://img.shields.io/npm/l/@discretetom/ws-server?style=flat-square)\n\nA CLI tool to start a WebSocket debug server using NodeJS.\n\nThis is useful when you want to mock a WebSocket server to test your WebSocket client.\n\n## Installation\n\n```bash\nnpm install -g @discretetom/ws-server\n```\n\n## Usage\n\n```bash\n# ws-server --help\nOptions:\n      --help         Show help                                         [boolean]\n      --version      Show version number                               [boolean]\n  -p, --port                                            [number] [default: 8080]\n  -h, --header       Show header                      [boolean] [default: false]\n  -T, --no-trim      Don't trim message               [boolean] [default: false]\n  -e, --allow-empty  Allow empty message              [boolean] [default: false]\n  -E, --echo         Print message from the server    [boolean] [default: false]\n```\n\n## Commands\n\n```bash\n# show this help\n/help\n# exit\n/exit\n# exit\n/quit\n\n# send message to all clients\n@all \u003cmessage\u003e\n# you can omit @all\n\u003cmessage\u003e\n\n# send message to a specific client\n@\u003cid\u003e \u003cmessage\u003e\n\n# disconnect a client\n!\u003cid\u003e\n```\n\n## [CHANGELOG](https://github.com/DiscreteTom/ws-server/blob/main/CHANGELOG.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscretetom%2Fws-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiscretetom%2Fws-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscretetom%2Fws-server/lists"}