{"id":15715834,"url":"https://github.com/marchaos/resilient-websocket","last_synced_at":"2025-05-12T21:52:40.094Z","repository":{"id":44220267,"uuid":"177679043","full_name":"marchaos/resilient-websocket","owner":"marchaos","description":"A client WebSocket wrapper with support for reconnection and ping/pong with a familiar API. Written in TypeScript.","archived":false,"fork":false,"pushed_at":"2022-12-30T17:21:22.000Z","size":229,"stargazers_count":15,"open_issues_count":7,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T18:39:27.779Z","etag":null,"topics":["ping-pong","reconnect","reconnecting-websocket","resilient","websocket"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"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/marchaos.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}},"created_at":"2019-03-25T23:16:16.000Z","updated_at":"2024-12-08T08:28:29.000Z","dependencies_parsed_at":"2023-01-31T12:16:07.159Z","dependency_job_id":null,"html_url":"https://github.com/marchaos/resilient-websocket","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/marchaos%2Fresilient-websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchaos%2Fresilient-websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchaos%2Fresilient-websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchaos%2Fresilient-websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marchaos","download_url":"https://codeload.github.com/marchaos/resilient-websocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253830792,"owners_count":21970999,"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":["ping-pong","reconnect","reconnecting-websocket","resilient","websocket"],"created_at":"2024-10-03T21:43:11.319Z","updated_at":"2025-05-12T21:52:40.068Z","avatar_url":"https://github.com/marchaos.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# resilient-websocket\nA client WebSocket wrapper with support for reconnection and ping/pong with a familiar API. Written in TypeScript\n\n# Installing\n\n```sh\nnpm install resilient-websocket --save\n```\n\n# API\n\n```js\nimport ResilientWebSocket, { WebSocketEvent } from 'resilient-websocket';\n\nconst opts = {\n    autoJsonify: true, // parse json message from server, stringify messages on send,\n    pingEnabled: true // send ping / pong messages\n};\n\nconst rSock = new ResilientWebSocket(url, opts);\n\nrSock.on(WebSocketEvent.CONNECTION, () =\u003e {\n    rSock.on(WebSocketEvent.MESSAGE, (message) =\u003e {\n        console.info('received message from the server', message);\n        rSock.send({ message: 'Right back at ya, buddy!' });\n    });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchaos%2Fresilient-websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarchaos%2Fresilient-websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchaos%2Fresilient-websocket/lists"}