Skip to content
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

How can we pass string data(parameter) between two clients? #43

Open
adarshvcdev opened this issue Jun 14, 2016 · 6 comments
Open

How can we pass string data(parameter) between two clients? #43

adarshvcdev opened this issue Jun 14, 2016 · 6 comments

Comments

@adarshvcdev
Copy link

adarshvcdev commented Jun 14, 2016

How can we pass string data(parameter) between two clients? Is this achieved by RTCDataChannel?

@GaelHLago
Copy link

use a JSON ?
{
"data": "parameter",
"timestamp": "YourTimestamp"
}

And just use DataChannel to send the json

@adarshvcdev
Copy link
Author

Is there any DataChannel implementation or sample code or documentation for RTCDataChannel implementation?

@hengtelin
Copy link

hey, I'm new to this repo. So do I need DataChannel if I just need to send a command(used to control a mini car)?

@GaelHLago
Copy link

WebRTC doesn't provide signaling, so you probably use WebSocket, XMPP or any signaling protocol. You can send datas from those channels without using datachannels.
Integrating DataChannel isn't so hard, you just have to set the delegate and understand what is a DataChannel for webrtc (check https://developer.mozilla.org/fr/docs/Web/API/RTCDataChannel)

@BenjaminFaal
Copy link

Hello, i made a pull request for this: #45

@hjh006
Copy link

hjh006 commented Aug 15, 2016

you may use websocket and send a Json

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

No branches or pull requests

5 participants