Skip to content

DataChannel support #11

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

Merged
merged 4 commits into from
Jan 29, 2013
Merged

DataChannel support #11

merged 4 commits into from
Jan 29, 2013

Conversation

jbenet
Copy link
Contributor

@jbenet jbenet commented Jan 27, 2013

These commits add support for the WebRTC DataChannel API.

This commit adds support for the WebRTC DataChannel API.
If available, it sends all chat messages through DataChannel.
If not, it falls back to using the websocket.
@jbenet
Copy link
Contributor Author

jbenet commented Jan 27, 2013

See webRTC-io/webrtc.io-client#24

recv: function (message) {
return message;
},
event: 'receive_chat_msg',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about these commas ending the hash. I would definitely prefer it normally, but I recall that they're not syntactically valid JS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in af0231f.

FWIW, i think the whole codebase is pretty messy and could use cleanup + style fixing. I can help with this later on, as I will be using webrtc.io for another project.

@sarenji
Copy link
Member

sarenji commented Jan 29, 2013

Forgot to merge this as well. FWIW, I also agree regarding style.

sarenji added a commit that referenced this pull request Jan 29, 2013
@sarenji sarenji merged commit aa38365 into webRTC-io:master Jan 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants