An open API service indexing awesome lists of open source software.

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

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