-
Notifications
You must be signed in to change notification settings - Fork 501
Closed
libp2p/js-libp2p-interfaces
#54Labels
P0Critical: Tackled by core team ASAPCritical: Tackled by core team ASAPexp/expertHaving worked on the specific codebase is importantHaving worked on the specific codebase is importantkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)status/in-progressIn progressIn progress
Description
- Version: 0.28.0
- Platform: Node.js and Browser
- Subsystem: Gossipsub/Pubsub
Type: Bug
Severity: High
Description:
I was updated the Chat example at https://github.com/libp2p/js-libp2p-examples/tree/libp2p-0.28.x/chat to 0.28.x. When a Node and browser instance are connected they are able to communicate over gossipsub just fine. When the browser page is reloaded, pubsub no longer functions. I think this may be related to existing peers not being updated when they drop and reconnect. If another peer joins, pubsub functions again (which may just be the peer acting as a message router).
Steps to reproduce the error:
- Run the bootsrap node https://github.com/libp2p/js-libp2p-examples/tree/libp2p-0.28.x/chat/nodejs/bootstrap
- Run the final chapter browser node https://github.com/libp2p/js-libp2p-examples/tree/libp2p-0.28.x/chat/browser/08-End
- Send messages, it should work
- Refresh the browser page
- Try to send a message, it should fail
Metadata
Metadata
Assignees
Labels
P0Critical: Tackled by core team ASAPCritical: Tackled by core team ASAPexp/expertHaving worked on the specific codebase is importantHaving worked on the specific codebase is importantkind/bugA bug in existing code (including security flaws)A bug in existing code (including security flaws)status/in-progressIn progressIn progress