Peerjs: Peerjs in Electron - Connection issues

Created on 23 Mar 2018  路  12Comments  路  Source: peers/peerjs

Hello, I am trying to create a peer to peer app using electron. I am able to send messages to a website that uses peerjs (locally) , but I cannot get to receive data to the electron app. Neither from the website, nor from another electron application. Please help!

Code in electron app:

_var peer = new Peer('peer-1', {key: '##########'});

peer.on('connection', function(conn) {
conn.on('data', function(data){
// Should print 'data!'
console.log(data);
});
});_

All 12 comments

Something happened to their server. peerjs.com doesn't work

Do you have any idea when will it be live again @kas2000 ?

@shivamgupta-gupta No idea. I've started rebuilding my video chat using simple-peer:
https://github.com/feross/simple-peer

@kas2000 but it seems that simple-peer does not work on the client side. Its CDN does not work.

I'm working on restoring this library back, you could use host: 'peerjs.com' while I setup the original domain

So does this mean that peerjs is going to get live again and work with electron ?

That's our goal, yes

Can you estimate the date of the release ?

I will be releasing a new working version this weekend, and if everything goes well and quickly, I expect to have the peerjs server online for next weekend.

If problems appear, it may be delayed to the end of this month.

Thank you in advance, this is awesome! Will publish the release when it is happening ?

yes, I will publish something on the Readme, and also I will answer all these issues related to it not working, so you will be noticed.

Update your peerjs version and it will work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kidandcat picture kidandcat  路  8Comments

schweini picture schweini  路  7Comments

senihtosun picture senihtosun  路  5Comments

furozen picture furozen  路  9Comments

UnsungHero97 picture UnsungHero97  路  5Comments