We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue by thammi Thursday Sep 04, 2014 at 19:43 GMT Originally opened as palavatv/palava-client#9
I started a branch with DataChannel support. I am not sure whether the API is the best approach.
DataChannel
To create a session with one TCP-like DataChannel with the label chat do something like this:
chat
session = new palava.Session roomId: room channel: channel dataChannels: {"chat": {ordered: true}} session.on 'peer_channel_ready', (peer, name, channel) -> if name == 'chat' channel.on 'message', (data) -> console.log "Incoming chat message:", data channel.on 'close', () -> console.log "DataChannel closed" chat.send "Hello World!"
The configuration could also be moved to Session.init().
Session.init()
thammi included the following code: https://github.com/palavatv/palava-client/pull/9/commits
The text was updated successfully, but these errors were encountered:
Was merged.
Sorry, something went wrong.
No branches or pull requests
Issue by thammi
Thursday Sep 04, 2014 at 19:43 GMT
Originally opened as palavatv/palava-client#9
I started a branch with
DataChannel
support. I am not sure whether the API is the best approach.To create a session with one TCP-like
DataChannel
with the labelchat
do something like this:The configuration could also be moved to
Session.init()
.thammi included the following code: https://github.com/palavatv/palava-client/pull/9/commits
The text was updated successfully, but these errors were encountered: