{"id":19705590,"url":"https://github.com/mesosphere-backup/connection-manager","last_synced_at":"2026-02-18T14:31:40.043Z","repository":{"id":46937993,"uuid":"108122372","full_name":"mesosphere-backup/connection-manager","owner":"mesosphere-backup","description":"Allows to manage connections inside the browser and order them in a queue by priority.","archived":false,"fork":false,"pushed_at":"2022-12-07T09:22:06.000Z","size":124,"stargazers_count":3,"open_issues_count":10,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-10T05:36:20.774Z","etag":null,"topics":["browser","connections","manager","pooling","priority","queue"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mesosphere-backup.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-24T12:17:40.000Z","updated_at":"2020-06-29T14:02:21.000Z","dependencies_parsed_at":"2023-01-23T16:45:39.750Z","dependency_job_id":null,"html_url":"https://github.com/mesosphere-backup/connection-manager","commit_stats":null,"previous_names":["dcos-labs/connection-manager"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/mesosphere-backup/connection-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere-backup%2Fconnection-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere-backup%2Fconnection-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere-backup%2Fconnection-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere-backup%2Fconnection-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mesosphere-backup","download_url":"https://codeload.github.com/mesosphere-backup/connection-manager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mesosphere-backup%2Fconnection-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29582318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["browser","connections","manager","pooling","priority","queue"],"created_at":"2024-11-11T21:29:16.473Z","updated_at":"2026-02-18T14:31:35.034Z","avatar_url":"https://github.com/mesosphere-backup.png","language":"JavaScript","readme":"# Connection Manager [![Build Status](https://travis-ci.org/dcos-labs/connection-manager.svg?branch=master)](https://travis-ci.org/dcos-labs/connection-manager)\n\nThis package allows to manage connections inside the browser and order them in a queue by priority.\n\nBrowsers can open only a limited amount of connections so when you urgently need one there may not be a slot. This package solves the issue by providing a manager that enqueues all requested connections and priorities them accordingly.\n\n## Usage\n\n```javascript\nimport { XHRConnection, ConnectionEvent } from \"@dcos/connections\";\nimport ConnectionManager from \"@dcos/connection-manager\";\n\nconst connection = new XHRConnection(\"http://127.0.0.1\");\nconnection.on(ConnectionEvent.CLOSE, function(event) {\n  // doing something with event.target.response\n});\nConnectionManager.enqueue(connection);\n```\n\nConnection will be opened by the manager once there's a slot available.\n\n## Connection types\n\nAt the moment `connection-manager` package exposes only one connection `XHRConnection` that wraps `XmlHttpRequest`\n\n```javascript\nconst connection = new XHRConnection(\"http://127.0.0.1\", {\n  method: \"POST\",\n  body: \"{}\",\n  contentType: \"json\"\n});\n```\n\n## Creating your own connection type\n\nIf you want to create your own connection type that will be compatible with the manager please extend `AbstractConnection`.\nHave a look at `Connections/AbstractConnection.js` for more info.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesosphere-backup%2Fconnection-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesosphere-backup%2Fconnection-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesosphere-backup%2Fconnection-manager/lists"}