{"id":18388062,"url":"https://github.com/methodgrab/socketio-proxy-boilerplate","last_synced_at":"2025-08-25T01:15:32.103Z","repository":{"id":149551286,"uuid":"49635096","full_name":"MethodGrab/socketio-proxy-boilerplate","owner":"MethodGrab","description":"An example of using http-proxy to proxy WebSocket requests to a separate server","archived":false,"fork":false,"pushed_at":"2016-01-14T08:58:28.000Z","size":3,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T10:24:05.544Z","etag":null,"topics":["boilerplate","socket-io"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/MethodGrab.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}},"created_at":"2016-01-14T08:55:33.000Z","updated_at":"2023-03-30T23:29:22.000Z","dependencies_parsed_at":"2023-04-18T05:24:03.585Z","dependency_job_id":null,"html_url":"https://github.com/MethodGrab/socketio-proxy-boilerplate","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/MethodGrab%2Fsocketio-proxy-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fsocketio-proxy-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fsocketio-proxy-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MethodGrab%2Fsocketio-proxy-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MethodGrab","download_url":"https://codeload.github.com/MethodGrab/socketio-proxy-boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247578414,"owners_count":20961263,"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":["boilerplate","socket-io"],"created_at":"2024-11-06T01:30:37.929Z","updated_at":"2025-04-07T01:33:05.206Z","avatar_url":"https://github.com/MethodGrab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Socket.io Proxy Boilerplate\nAn example of using `http-proxy` to proxy WebSocket requests to a separate server.\n\n\n## Usage\n- `npm install`\n- `npm start`  \n(or `npm run start:dev` to use nodemon \u0026 show debug messages)\n- Open http://localhost:4000 in the browser and check the console\n\nTo show debug messages in the browser use:\n```js\nlocalStorage.setItem( 'debug', 'socket.io-client:*,-socket.io-client:socket' );\n```\n\n\n## Testing\nTo verify that sockets are being used instead of polling, open the dev tools `Network` tab and find the request using the `websocket` protocol.  \nIt should have a status code of `101 Switching Protocols` and it's `frames` tab should show all the incoming `ping` messages from the server.\n\n\n## Notes\n- Socket.io will still do some (~3) initial polling requests before `upgrade`ing to a WebSocket connection.  \nIf you change the clientside `transports` to `transports : ['websocket']` these initial polling requests will stop but you lose the polling fallback.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmethodgrab%2Fsocketio-proxy-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmethodgrab%2Fsocketio-proxy-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmethodgrab%2Fsocketio-proxy-boilerplate/lists"}