{"id":20364362,"url":"https://github.com/bandwidth/json-rpc-websockets","last_synced_at":"2025-03-04T18:44:13.046Z","repository":{"id":80265986,"uuid":"320093127","full_name":"Bandwidth/json-rpc-websockets","owner":"Bandwidth","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-04T16:06:31.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-15T04:19:21.623Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bandwidth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-09T22:16:35.000Z","updated_at":"2021-02-04T16:08:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"483f392a-c19b-4c84-b1c7-28efa731d684","html_url":"https://github.com/Bandwidth/json-rpc-websockets","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fjson-rpc-websockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fjson-rpc-websockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fjson-rpc-websockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bandwidth%2Fjson-rpc-websockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bandwidth","download_url":"https://codeload.github.com/Bandwidth/json-rpc-websockets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241904683,"owners_count":20040021,"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":"2024-11-15T00:11:24.852Z","updated_at":"2025-03-04T18:44:13.024Z","avatar_url":"https://github.com/Bandwidth.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON-RPC WebSockets\n\nJSON-RPC WebSockets is an open-source implementation of [JSON-RPC 2.0](https://www.jsonrpc.org/specification) using WebSockets.\n\nInspired by [rpc-websockets](https://www.npmjs.com/package/rpc-websockets).\n\n```swift\nlet client = Client()\n\nstruct FeedUpdatedParameters: Codable {\n\n}\n\n// Subscribe to receiving notifications from the server.\ntry client.subscribe(to: \"feedUpdated\", type: FeedUpdatedParameters.self)\n\n// Execute a closure when a subscribed notification has been received.\nclient.on(method: \"feedUpdated\", type: FeedUpdatedParameters.self) { parameters in\n\n}\n\nlet parameters = FeedUpdatedParameters()\n\n// Send a notification to the server.\nclient.notify(method: \"openedNewsModule\", parameters) { result in \n\n}\n\n// Connect to the server.\nclient.connect(url: url) {\n\n}\n\n// Disconnect from the server.\nclient.disconnect {\n\n}\n```\n\n## Compatibility\n\nJSON-RPC WebSockets follows [SemVer 2.0.0](https://semver.org/#semantic-versioning-200).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbandwidth%2Fjson-rpc-websockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbandwidth%2Fjson-rpc-websockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbandwidth%2Fjson-rpc-websockets/lists"}