{"id":13565438,"url":"https://github.com/websockets/websocket-echo-server","last_synced_at":"2025-04-03T22:31:28.682Z","repository":{"id":66003070,"uuid":"441543450","full_name":"websockets/websocket-echo-server","owner":"websockets","description":"WebSocket echo server","archived":false,"fork":false,"pushed_at":"2024-07-07T19:55:22.000Z","size":276,"stargazers_count":15,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-04T19:41:18.074Z","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/websockets.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-24T19:43:53.000Z","updated_at":"2024-07-05T18:38:29.000Z","dependencies_parsed_at":"2023-08-31T08:32:25.014Z","dependency_job_id":"be4bc4ad-046f-4fc1-84fa-b0044706e1c2","html_url":"https://github.com/websockets/websocket-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/websockets%2Fwebsocket-echo-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websockets%2Fwebsocket-echo-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websockets%2Fwebsocket-echo-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websockets%2Fwebsocket-echo-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websockets","download_url":"https://codeload.github.com/websockets/websocket-echo-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247090241,"owners_count":20881935,"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-08-01T13:01:46.977Z","updated_at":"2025-04-03T22:31:27.984Z","avatar_url":"https://github.com/websockets.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# websocket-echo-server\n\n[![CI](https://img.shields.io/github/actions/workflow/status/websockets/websocket-echo-server/ci.yml?branch=master\u0026label=CI\u0026logo=github)](https://github.com/websockets/websocket-echo-server/actions?query=workflow%3ACI+branch%3Amaster)\n[![Coverage Status](https://img.shields.io/coveralls/websockets/websocket-echo-server/master.svg?logo=coveralls)](https://coveralls.io/github/websockets/websocket-echo-server)\n\nSimple WebSocket echo server.\n\n## Configuration\n\n- The `BIND_ADDRESS` environment variable specifes the address on which the\n  server will start listening for connections. The default value is `::`.\n- The `BIND_PORT` environment variable specifies the port on which the server\n  will start listening for connections. The default value is `1337`.\n- The `HEARTBEAT_INTERVAL` environment variable specifies the interval, in\n  milliseconds, at which the server sends a ping message to all connected\n  clients to detect and close unresponsive connections. The default value is\n  `30000`.\n- The `HIGH_WATER_MARK` environment variable specifies a threshold in bytes for\n  the outgoing buffered data of each connection. If the threshold is exceeded no\n  more data is read until all the outgoing buffered data is flushed. The default\n  value is `16384`.\n- The `MAX_MESSAGE_SIZE` environment variable specifies the maximum allowed\n  message size in bytes. The default value is `65536`.\n\n## Running the server locally\n\n```\ngit clone https://github.com/websockets/websocket-echo-server.git\ncd websocket-echo-server\nnpm ci --production\nnode index.js\n```\n\n## Running the server in a Docker container\n\n```\ngit clone https://github.com/websockets/websocket-echo-server.git\ncd websocket-echo-server\ndocker build -t websocket-echo-server .\ndocker run -e BIND_PORT=8080 --expose 8080 -d -p 8080:8080 websocket-echo-server\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsockets%2Fwebsocket-echo-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsockets%2Fwebsocket-echo-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsockets%2Fwebsocket-echo-server/lists"}