{"id":21332263,"url":"https://github.com/stultuss/node-ws-server","last_synced_at":"2026-04-15T18:02:08.317Z","repository":{"id":37878560,"uuid":"219759512","full_name":"stultuss/node-ws-server","owner":"stultuss","description":"Distributed Message Service Cluster for Service Registration and Discovery via ETCD","archived":false,"fork":false,"pushed_at":"2022-12-10T07:57:44.000Z","size":10543,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T13:51:40.882Z","etag":null,"topics":["distributed-systems","nodejs","service-registration-discovery","typescript","websocket"],"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/stultuss.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}},"created_at":"2019-11-05T14:04:18.000Z","updated_at":"2023-12-20T10:31:23.000Z","dependencies_parsed_at":"2023-01-26T04:46:29.245Z","dependency_job_id":null,"html_url":"https://github.com/stultuss/node-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/stultuss%2Fnode-ws-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stultuss%2Fnode-ws-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stultuss%2Fnode-ws-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stultuss%2Fnode-ws-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stultuss","download_url":"https://codeload.github.com/stultuss/node-ws-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809886,"owners_count":20351407,"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":["distributed-systems","nodejs","service-registration-discovery","typescript","websocket"],"created_at":"2024-11-21T22:46:27.475Z","updated_at":"2026-04-15T18:02:03.296Z","avatar_url":"https://github.com/stultuss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"im-server\n==========================\n\n\u003e Distributed Message Service Cluster for Service Registration and Discovery via ETCD\n\n## Aim\n\nThis project is to provide a reliable message service，By making this project into a docker image, you can quickly build a distributed message service cluster on the docker container platform.\n\nYou can also customize your message service cluster by modifying the code.\n\n## How to use\n\n * Generate discovery url\n\n```bash\ncurl -s http://discovery.etcd.io/new?size=3\n// https://discovery.etcd.io/9c7d8d23b7d883e5a3348ae66fc85ec7\n```\n\n * Modify `start.sh` to replace the discovery url\n\n``` bash\nnohup /tmp/etcd/etcd  \\\n     -name proxy \\\n     -proxy on  \\\n     -listen-client-urls http://0.0.0.0:2370  \\\n     -discovery https://discovery.etcd.io/9c7d8d23b7d883e5a3348ae66fc85ec7 \u003e\u003e /tmp/etcd/output.log 2\u003e\u00261 \u0026 echo $! \u003e run.pid\n\nnode ./build/index.js\n```\n\n * Build and launch the docker container\n\n``` bash\ndocker build -t im-server:latest .\ndocker run -d -p 8080:8080 im-server\n```\n\n## Client authentication mode\n1. default\n\n   \u003e To allow any client access, the Token required to connect to the server must be generated in conjunction with `secret.user` in the server configuration.\n\n2. strict\n\n   \u003e Allow only token authenticated client access。\n\n## Token generating rule\n\n``` typescript\nconst token = md5(“${secretKey}_${uid},${ipAddress},${loginTime}”).substr(0, 8)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstultuss%2Fnode-ws-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstultuss%2Fnode-ws-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstultuss%2Fnode-ws-server/lists"}