Open 748890753yiyi opened 7 years ago
also this error
@maxogden doesn't maintain the server
I've been looking for a solution like this for a very long time and screencat looks like it was great back when it was maintained. any chance that @maxogden could release the server code that was used for catlobby.maxogden.com? at this time it looks like the server is no longer running and it would be great to have this code available so the project can live on.
he has released the server code. https://github.com/maxogden/cat-lobby Unfortunately it still depends on some other things I cant get working. If someone gets it working please respond here with solution.
@Craigzyc Installed it successfully :)
Georges-MacBook:~ georgebougakov$ sudo npm install cat-lobby -g
Password:
/usr/local/bin/cat-lobby -> /usr/local/lib/node_modules/cat-lobby/cli.js
+ cat-lobby@1.1.0
added 98 packages in 5.939s
Not sure about configuring the client tho
Yea I installed it as well but haven't had much time to dig into what else is required. The instant.io/rtcConfig isn't an available resource so I think that might be an issue.
If I have the time to get it working I'll host a public server and fork this into a working version.
FYI https://github.com/jeffrafter/screencat seems to work. He is running the server but he hasn't updated the links so it only works between 2 clients cloned from that rep.
I don't have 2 macs to test between and can't get robotjs to build on my windows machine currently so I cant test
@Craigzyc can you please provide code of server that you have hosted on glitch
cat-lobby is the server side of it. https://github.com/maxogden/cat-lobby
@CraigZych it does not run over https and when i am trying to convert it I am facing error in " var events = new EventSource(pingsUrl)"
honestly I don't know. I just remembered what the server was called. I ended up building my own app and server completely from scratch for my uses.
@CraigZych can you make code of your app public or provide link for same
yout code include: first: var server = 'http://catlobby.maxogden.com'; var remoteConfigUrl = 'https://instant.io/rtcConfig'; if (process.browser) remoteConfigUrl = 'http://cors.maxogden.com/' + remoteConfigUrl; function verifyRoom (room, cb) {
second: // ensure room is still open nets({method: 'POST', uri: server + '/v1/' + room + '/pong', json: {ready: true}}, function response (err, resp, data) { if (err){ console.log('connect server error: ', err); return cb(err) }
} thrid: // get remote webrtc config (ice/stun/turn) function getRemoteConfig (cb) { nets({url: remoteConfigUrl, json: true}, function gotConfig (err, resp, config) { if (err || resp.statusCode > 299) config = undefined // ignore errors cb(null, config) }) } fourth: // get remote webrtc config (ice/stun/turn) function getRemoteConfig (cb) { nets({url: remoteConfigUrl, json: true}, function gotConfig (err, resp, config) { if (err || resp.statusCode > 299) config = undefined // ignore errors cb(null, config) }) }
I think that this two url is to deal code, but I think your server is down , I want to ask you what logic about your two request( uri: server + '/v1/' + room + '/pong' and url: remoteConfigUrl,), and the getRemoteConfig function return the data is or not json format? please give me an example of the config object
I want to create server about like your 'http://catlobby.maxogden.com' to deal code logic , but I do not how to create and the server Background logic and field of your data