{"id":19589679,"url":"https://github.com/flolu/bazel-socketio-issue","last_synced_at":"2026-05-06T14:40:24.818Z","repository":{"id":38562832,"uuid":"258721413","full_name":"flolu/bazel-socketio-issue","owner":"flolu","description":"The ts_devserver doesn't seem to work with socket.io-client out of the box: Uncaught TypeError: XMLHttpRequest is not a constructor","archived":false,"fork":false,"pushed_at":"2022-12-12T14:18:08.000Z","size":445,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-20T14:33:25.926Z","etag":null,"topics":["angular","bazel","socketio","typescript"],"latest_commit_sha":null,"homepage":null,"language":"Starlark","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/flolu.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":"2020-04-25T08:18:58.000Z","updated_at":"2021-09-18T14:59:50.000Z","dependencies_parsed_at":"2023-01-27T20:30:30.492Z","dependency_job_id":null,"html_url":"https://github.com/flolu/bazel-socketio-issue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flolu/bazel-socketio-issue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fbazel-socketio-issue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fbazel-socketio-issue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fbazel-socketio-issue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fbazel-socketio-issue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flolu","download_url":"https://codeload.github.com/flolu/bazel-socketio-issue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flolu%2Fbazel-socketio-issue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32699082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"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":["angular","bazel","socketio","typescript"],"created_at":"2024-11-11T08:20:12.344Z","updated_at":"2026-05-06T14:40:24.801Z","avatar_url":"https://github.com/flolu.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SocketIO Issue With Bazel + Angular\n\nThe `ts_devserver` doesn't seem to work with `socket.io-client` out of the box\n\n## Setup\n\n```\nyarn install\n```\n\n## What Works\n\n```\nyarn prod\n```\n\nSocketIO works perfectly fine, server runs on http://localhost:8080\n\n## The Issue\n\n```\nyarn dev\n```\n\nResults in this error in the Browser console (http://localhost:4200).\n\n```\nUncaught TypeError: XMLHttpRequest is not a constructor\n    at ts_scripts.js?v=1587802098203:16776\n    at Object.23.../transport (ts_scripts.js?v=1587802098203:16780)\n    at o (ts_scripts.js?v=1587802098203:11783)\n    at ts_scripts.js?v=1587802098203:11783\n    at Object.22../polling (ts_scripts.js?v=1587802098203:16326)\n    at o (ts_scripts.js?v=1587802098203:11783)\n    at ts_scripts.js?v=1587802098203:11783\n    at Object.20../polling-jsonp (ts_scripts.js?v=1587802098203:16035)\n    at o (ts_scripts.js?v=1587802098203:11783)\n    at ts_scripts.js?v=1587802098203:11783\n```\n\nIt is caused by [xmlhttprequest-ssl](https://www.npmjs.com/package/xmlhttprequest-ssl) which is a dependency of [engine.io-client](https://github.com/socketio/engine.io-client/blob/master/package.json) and it is needed by [ngx-socket-io](https://www.npmjs.com/package/ngx-socket-io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflolu%2Fbazel-socketio-issue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflolu%2Fbazel-socketio-issue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflolu%2Fbazel-socketio-issue/lists"}