-
Notifications
You must be signed in to change notification settings - Fork 43
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
Example usage Confusion #26
Comments
Not dumb at all. The 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);
}); |
Muchas gracias, clears up my misconceptions. |
Would be worth adding this to the documentation of the events. |
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.. |
My bad. Yet again I missed that link! Sorry. |
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. |
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 :) |
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. |
I agree that it is probably just a navigation thing (or my inexperience), once I find what I'm looking for it is outstanding. |
Sorry, this is a really dumb n00b question. I have been struggling to get the basic example usage to work:
I get the following output:
But I was expecting:
The text was updated successfully, but these errors were encountered: