{"id":20189927,"url":"https://github.com/tjm/websockets-test","last_synced_at":"2026-03-19T14:27:28.520Z","repository":{"id":38190494,"uuid":"493808642","full_name":"TJM/websockets-test","owner":"TJM","description":"Simple Websockets Test Helm Chart","archived":false,"fork":false,"pushed_at":"2023-12-07T01:07:02.000Z","size":53,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-03T07:28:05.390Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smarty","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/TJM.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}},"created_at":"2022-05-18T20:01:39.000Z","updated_at":"2022-05-18T20:51:55.000Z","dependencies_parsed_at":"2024-11-14T03:43:22.401Z","dependency_job_id":"adc9da28-57ca-40f9-a04d-61950997e436","html_url":"https://github.com/TJM/websockets-test","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/TJM/websockets-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TJM%2Fwebsockets-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TJM%2Fwebsockets-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TJM%2Fwebsockets-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TJM%2Fwebsockets-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TJM","download_url":"https://codeload.github.com/TJM/websockets-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TJM%2Fwebsockets-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30173694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-14T03:39:42.066Z","updated_at":"2026-03-06T11:32:23.471Z","avatar_url":"https://github.com/TJM.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebSockets Test (helm chart)\n\nThis is a simple application to test websockets. (echo test)\n\nThis is mostly from [the python websockets tutorial docs](https://websockets.readthedocs.io/en/stable/howto/kubernetes.html).\n\n## Installation\n\n```bash\nhelm repo add tjm-websockets https://tjm.github.io/websockets-test/\nhelm repo update\nhelm install websockets-test tjm-websockets/websockets-test\n```\n\nYou may also want to provide a `-f myValues.yaml` option.\n\nExample `myValues.yaml` annotations for Citrix Ingress:\n\n```yaml\ningress:\n  enabled: true\n  annotations:\n    ingress.citrix.com/frontend-ip: 10.1.2.3\n    ingress.citrix.com/frontend-httpprofile: '{\"webSocket\" : \"enabled\"}'\n    ingress.citrix.com/frontend-tcpprofile: '{\"ws\":\"enabled\"}'\n    ingress.citrix.com/insecure-termination: redirect\n    ingress.citrix.com/preconfigured-certkey: '{\"certs\": [ {\"name\": \"wc.example.com\", \"type\":\"default\"} ] }'\n    kubernetes.io/ingress.class: citrix\n  hosts:\n    - host: cluster-name-ws-test.example.com\n      paths:\n        - path: /\n          pathType: ImplementationSpecific\n  tls:\n    - hosts:\n        - cluster-name-ws-test.example.com\n```\n\n## Development\n\n* Prerequisites - Python!\n\n* Setup VirtualEnv\n\n```bash\nvirtualenv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n```\n\n### Local Testing\n\n* Activate VirtualEnv\n\n```bash\nsource .venv/bin/activate\n```\n\n* Run Server (this will attempt to run a webserver on port 80)\n\n```bash\npython app.py\n```\n\n* Test Connectivity (from another terminal)\n\n```bash\nsource .venv/bin/activate\npython -m websockets ws://localhost\n```\n\nNOTE: Anything typed should be echoed back after a short delay.\n\n### Docker Image / Testing\n\n* Create docker image\n\n```bash\ndocker build -t websockets-test:1.0.0 .\n```\n\n* Docker test\n\n```bash\ndocker run --name run-websockets-test --publish 32080:80 --rm websockets-test:1.0.0\n```\n\n* Test Connectivity (from another terminal)\n\n```bash\nsource .venv/bin/activate\npython -m websockets ws://localhost:32080\n```\n\nNOTE: Anything typed should be echoed back after a short delay.\n\n### Kubernetes Helm Deployment Testing\n\nNOTE: This depends on the docker image above being deployed to GHCR (GitHub Container Registry).\n\n* Render Templates without installing\n\n```bash\nhelm template websockets-test ./chart/websockets-test -f myValues.yaml\n```\n\n* Deploy local helm chart (during chart testing/development)\n\n```bash\nhelm upgrade --install websockets-test ./chart/websockets-test -f myValues.yaml\n```\n\n* Test\n\nNOTE: It takes time for the DNS to propagate.\n\n```bash\nsource .venv/bin/activate\npython -m websockets wss://cluster-name-ws-test.example.com\n```\n\nNOTE: Anything typed should be echoed back after a short delay.\n\n## TODO\n\n* Use the code from the benchmark.py (from the websockets docs) for automated testing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjm%2Fwebsockets-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftjm%2Fwebsockets-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftjm%2Fwebsockets-test/lists"}