-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Program crash #2
Comments
relevant error info: events.js:160 |
in my side i cannot use also sendTo i have this error
|
Hi @alienatorZ and @josselinchevalay, could you give it a try again with the latest ipfs-pubsub-room. There have been many improvements and fixes and together with new ipfs 0.27.0 it might be that the new releases fix your problems. Let us know how it went and if you still run into problems, let's dig deeper! 😄 |
Hello, @haadcode |
@kidinamoto01 could you post a snippet of the code so I can take a look? |
hey @pgte |
@kidinamoto01 what version of ipfs-pubsub-room are you using? |
yes, I am using version 1.1.2 const ipfs = new IPFS({ ipfs.once('ready', () => ipfs.id((err, info) => { const room = Room(ipfs, 'ipfs-pubsub-demo') room.on('peer joined', (peer) => console.log('peer ' + peer + ' joined')) // send and receive messages room.on('peer joined', (peer) => room.sendTo(peer, 'Hello ' + peer + '!')) // broadcast message every 2 seconds setInterval(() => room.broadcast('hey everyone!'), 2000) function repo () { |
It happens that the room was immediately trying to reconnect and failing at so, and not handling that failure well. |
@kidinamoto01 also, I updated the dependency versions in the demo, if you care to check that out.. |
I used 2 peers connected to each other and sending direct messages when joining room. If I kill one peer the other one crashes.
Thanks!
The text was updated successfully, but these errors were encountered: