{"id":23099219,"url":"https://github.com/ringsnetwork/rings-wasm-p2p","last_synced_at":"2025-07-08T03:41:15.680Z","repository":{"id":192978409,"uuid":"687551098","full_name":"RingsNetwork/rings-wasm-p2p","owner":"RingsNetwork","description":"This example shows how rings network works in wasm and browser envirement.","archived":false,"fork":false,"pushed_at":"2024-01-22T05:31:05.000Z","size":31,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T08:41:16.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rings.rs/rings-wasm-p2p/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RingsNetwork.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-05T15:29:59.000Z","updated_at":"2025-02-06T14:43:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"2cdbbe48-ea11-4c8d-a6cf-f0457808737b","html_url":"https://github.com/RingsNetwork/rings-wasm-p2p","commit_stats":null,"previous_names":["ringsnetwork/rings-handshake-example","ringsnetwork/rings-wasm-p2p"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RingsNetwork%2Frings-wasm-p2p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RingsNetwork%2Frings-wasm-p2p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RingsNetwork%2Frings-wasm-p2p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RingsNetwork%2Frings-wasm-p2p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RingsNetwork","download_url":"https://codeload.github.com/RingsNetwork/rings-wasm-p2p/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247072484,"owners_count":20878897,"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-12-16T23:18:37.270Z","updated_at":"2025-04-03T20:25:40.827Z","avatar_url":"https://github.com/RingsNetwork.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://static.ringsnetwork.io/ringsnetwork_logo.png\"\u003e\n  \u003cimg alt=\"Rings Network\" src=\"https://raw.githubusercontent.com/RingsNetwork/asserts/main/logo/rings_network_red.png\"\u003e\n\u003c/picture\u003e\n\n\nAn Example of WASM based P2P (browser oriented)\n====\n\n# TL;DR\n\nThis example shows how rings network (https://github.com/RingsNetwork/rings-node) works with wasm in browser envirement. In the example, you can create arbitrary nodes, and connect them together by manually SDP handshaking or by relay handshaking.\n\nThis example is using Rings-node v0.3.0, you can visit it via:\n\nhttps://rings.rs/rings-wasm-p2p/\n\n# Explain\n\nThis demo is designed for testing handshakes as well as sending and receiving messages. The implementation is straightforward: you import client, init client, and then client.listen(). All features are implemented through client.request. You can review the details in the button.on_click handlers.\n\nThe following documents may be helpful for you:\nhow handshake works:\n       https://rings.gitbook.io/rings-network/advanced-topic/handshake\n       https://rings.gitbook.io/rings-network/advanced-topic/exchange-sdp\nand API list (you can call json apis via `client.request(`method`, [\u003cparams\u003e]):\n       https://rings.gitbook.io/rings-network/advanced-topic/jsonrpc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringsnetwork%2Frings-wasm-p2p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fringsnetwork%2Frings-wasm-p2p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fringsnetwork%2Frings-wasm-p2p/lists"}