ipfs-shipyard / ipfs-pubsub-room-demo

IPFS Pubsub room demo
MIT License
53 stars 21 forks source link

"peer joined" event not emitted or received #10

Open lambda0xff opened 6 years ago

lambda0xff commented 6 years ago

mac OS 10.13.5 node v8.11.3 npm v6.1.0

package.json dependencies: "browserify": "^16.2.2", "http-server": "^0.11.1", "ipfs": "^0.29.3", "ipfs-pubsub-room": "^1.3.0"

After opening a browser tab, the console displays: IPFS node ready with address Qm....... subscribed to room

No event seems to be dispatched for "peer joined" or "peer left"

EDIT: same thing when using same dependency versions as in repo: "browserify": "^14.4.0", "http-server": "^0.10.0", "ipfs": "^0.27.3", "ipfs-pubsub-room": "^1.1.3"

outofthisworld commented 6 years ago

Two things: Did you open another tab so it would be dispatched? Did you pass the repo option to IFPS? I found if you don't do that no event is dispatched.