{"id":21050951,"url":"https://github.com/theopenwebjp/websocket-client-server-tester","last_synced_at":"2026-05-20T15:33:10.606Z","repository":{"id":57684383,"uuid":"155044710","full_name":"theopenwebjp/websocket-client-server-tester","owner":"theopenwebjp","description":"Simple project for testing ability of browser client to communicate with server using web sockets.","archived":false,"fork":false,"pushed_at":"2023-07-23T07:50:32.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T23:17:15.573Z","etag":null,"topics":["html","javascript","testing","websocket","websocket-client"],"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/theopenwebjp.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":"2018-10-28T07:09:49.000Z","updated_at":"2023-07-12T13:41:04.000Z","dependencies_parsed_at":"2024-11-19T15:49:03.617Z","dependency_job_id":"9c59fd01-2a83-4af6-bcdb-a963d7e16455","html_url":"https://github.com/theopenwebjp/websocket-client-server-tester","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.5,"last_synced_commit":"19136af4ee51ceafb059d53befdd65c096de944c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/theopenwebjp/websocket-client-server-tester","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebsocket-client-server-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebsocket-client-server-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebsocket-client-server-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebsocket-client-server-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theopenwebjp","download_url":"https://codeload.github.com/theopenwebjp/websocket-client-server-tester/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fwebsocket-client-server-tester/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28117496,"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","status":"online","status_checked_at":"2025-12-29T02:00:07.021Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["html","javascript","testing","websocket","websocket-client"],"created_at":"2024-11-19T15:48:50.963Z","updated_at":"2025-12-29T15:04:44.080Z","avatar_url":"https://github.com/theopenwebjp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nSimple project for testing ability of browser client to communicate with server using web sockets.\nThe purpose of this project is for testing if the client supports Web Sockets and that the server has the network setup correctly for using web sockets.\n\n## Setup\n\n```bash\nnpm install @theopenweb/websocket-client-server-tester\n```\n\nClient:\n\n1. Install: `npm install`\n2. Setup localhost: `npm run localhost`.\n3. Open link at location shown in shell. Opens client page.\n\nServer:\n\n1. Place server directory on your server at desired location.\n2. Enter uploaded server directory and execute `npm run install` and then `node http.js` for http or `node https.js` for https. Remember to change any applicable settings in settings.json.\n\n## Usage\n\n※ Server URL is localhost:[PORT] where the port is usually 80, 443 for http, https respectively.\nInput server url and then click connect.  \nOnce connected, it is possible to send data and receive responses.\n\nFor https, make sure to set the certificate info in settings to your https config information.\n\n## nginx config\n\nnginx example config:\nMake sure to change [IP AND PORT OF SERVER]\n\n```nginx\n# Outside of server\nmap $http_upgrade $connection_upgrade {\n    default upgrade;\n    '' close;\n}\n\n# Inside server\nlocation /websocket {\n    #proxy_set_header X-Real-IP  $remote_addr;\n    #proxy_set_header X-Forwarded-For $remote_addr;\n    #proxy_set_header Host $host;\n    proxy_http_version 1.1;\n    proxy_set_header Upgrade $http_upgrade;\n    proxy_set_header Connection $connection_upgrade;\n    proxy_pass http://[IP AND PORT OF SERVER];\n}\n```\n\n## Considerations\n\nThis project only uses Node.js for the server.\nThe reason for this is a web socket requires setting up a process that listens for incoming messages so a shared server that usually only supports PHP would probably be difficult to setup making Node.js just as easy to setup as anything else.\nPlease setup your own web socket server code if using another environment. For example in PHP: [http://socketo.me](socketo.me)\n\nServer is separate package, but SHOULD NOT be package controlled, so uses \"private = true\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fwebsocket-client-server-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopenwebjp%2Fwebsocket-client-server-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fwebsocket-client-server-tester/lists"}