{"id":28514295,"url":"https://github.com/hardfire/stickywebsocket","last_synced_at":"2025-07-04T11:31:22.532Z","repository":{"id":12961836,"uuid":"15640201","full_name":"hardfire/stickyWebSocket","owner":"hardfire","description":"tries to reconnect to the websocket server using an exponential backoff algorithm","archived":false,"fork":false,"pushed_at":"2015-01-09T20:47:52.000Z","size":140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T01:36:58.835Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/hardfire.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":"2014-01-04T21:47:28.000Z","updated_at":"2015-01-09T20:47:53.000Z","dependencies_parsed_at":"2022-09-18T23:11:54.210Z","dependency_job_id":null,"html_url":"https://github.com/hardfire/stickyWebSocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hardfire/stickyWebSocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardfire%2FstickyWebSocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardfire%2FstickyWebSocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardfire%2FstickyWebSocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardfire%2FstickyWebSocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hardfire","download_url":"https://codeload.github.com/hardfire/stickyWebSocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hardfire%2FstickyWebSocket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263501571,"owners_count":23476456,"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":[],"created_at":"2025-06-09T01:36:23.820Z","updated_at":"2025-07-04T11:31:22.519Z","avatar_url":"https://github.com/hardfire.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sticky WebSockets\n\n## Introduction\n\nIt wraps the basic websocket object and tries to reconnect to the server if it loses connection.\nIt works exactly like a websocket client.\n`var ws = new stickyWebSocket(\"ws://awesome:port\");`\nsupports onopen, onclose, onconnecting, onerror events \nuse ws.send() and ws.close() to send and close respectively\n\n## Note\n\nuses the exponential backoff algorithm from \nhttp://dthain.blogspot.nl/2009/02/exponential-backoff-in-distributed.html\n\n## found an error?\n\nWell, this just came out another [project](https://github.com/hardfire/mekespo) I was working on an might have errors. I like pull requests more,if not then be a good person and report the errors so that we can fix them :D\n\nNote : I have not tested this thoroughly but it is kind of a small and cute library and should work in general. putting it on github might help someone who wants to do something similar\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardfire%2Fstickywebsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhardfire%2Fstickywebsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhardfire%2Fstickywebsocket/lists"}