Git Product home page Git Product logo

Comments (9)

DamonOehlman avatar DamonOehlman commented on July 20, 2024

Not dumb at all. The call:started event is related to when two parties have established a P2P connection to each other. I think you are probably looking for the plain old connected event if you are wanting an indication of when quickconnect has established connectivity with the signalling server.

The id, however, isn't reported in this event as it is assigned on the client prior. It should be available with the following code:

quickconnect('http://rtc.io/switchboard/', opts)
  .on('connected', function() {
    console.log('talking to the signalling server, and my id is: ' + this.id);
  })
  .on('call:started', function(id, pc, data) {
    console.log('we have a new connection to: ' + id);
});

from rtc-quickconnect.

cfreeman avatar cfreeman commented on July 20, 2024

Muchas gracias, clears up my misconceptions.

from rtc-quickconnect.

silviapfeiffer avatar silviapfeiffer commented on July 20, 2024

Would be worth adding this to the documentation of the events.
I can't see that event mentioned at https://github.com/rtc-io/rtc-quickconnect/blob/master/docs/events.md

from rtc-quickconnect.

DamonOehlman avatar DamonOehlman commented on July 20, 2024

I really wanted to avoid duplicating the information. There's a link to the signaller events in the opening sentence in that events documentation, maybe I just need to make that more obvious to draw peoples attention to it..

from rtc-quickconnect.

silviapfeiffer avatar silviapfeiffer commented on July 20, 2024

My bad. Yet again I missed that link! Sorry.

from rtc-quickconnect.

cfreeman avatar cfreeman commented on July 20, 2024

As someone who has been bumbling around, I have found the documentation quite fragmented and difficult to get a toe-hold on. I'm sure much of this can be put down to my inexperience with the npm/node ecosystem, and I completely agree with not duplicating information.

I think a beefier documentation presence on rtc.io itself would be a welcome addition in helping get started (especially if it was generated from/included everything from github docs and had some higher order glue that showed how the various modules piece together). If I can help with anything on this front, just lemme know.

from rtc-quickconnect.

DamonOehlman avatar DamonOehlman commented on July 20, 2024

Completely agree Clinton. We've been slowly trying to do that and have a full redux of the rtc.io site planned to address this.

Unfortunately, I'm completely tainted by the node / browserify ecosystem so like to document things at a package level, but we've now got others on the team now that are helping us bridge the gap to the untainted :)

from rtc-quickconnect.

silviapfeiffer avatar silviapfeiffer commented on July 20, 2024

It's somewhat there on http://rtc.io/modules.html, but I agree it's fragmented. We should probably pull the information together without having to do click-throughs.

from rtc-quickconnect.

cfreeman avatar cfreeman commented on July 20, 2024

I agree that it is probably just a navigation thing (or my inexperience), once I find what I'm looking for it is outstanding.

from rtc-quickconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.