https://github.com/tabcat/libp2p-pubsub
testing out libp2p pubsub in the browser
https://github.com/tabcat/libp2p-pubsub
Last synced: 7 months ago
JSON representation
testing out libp2p pubsub in the browser
- Host: GitHub
- URL: https://github.com/tabcat/libp2p-pubsub
- Owner: tabcat
- Created: 2023-07-03T19:28:57.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-04T03:38:15.000Z (almost 3 years ago)
- Last Synced: 2024-10-12T12:18:22.849Z (over 1 year ago)
- Language: TypeScript
- Size: 207 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# libp2p-pubsub
> testing out libp2p pubsub in the browser
https://github.com/libp2p/js-libp2p/issues/1865
## Structure
built using create-react-app
libp2p deps are pulled in by helia
edited/added app files:
- relay.js
- src/index.tsx
- src/relay-peerid.js
## Topology
circuit-relayv2 node connecting browser clients
## Usage
1) start relay server
```bash
# shell 1
$ npm run relay
```
2) start dev server
```bash
# shell 2
$ npm run start
```
## Observed vs Expected Behavior
clients do not discover eachother
unable to add pubsub peers to mesh, even after manually connecting clients using relay multiaddrs