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 I send text between peers ? #50

Closed
LucMoreau33560 opened this issue Nov 5, 2020 · 1 comment
Closed

How can I send text between peers ? #50

LucMoreau33560 opened this issue Nov 5, 2020 · 1 comment

Comments

@LucMoreau33560
Copy link

Hello,

I have two peers on ios and Android. Video and audio work fine using flutter-webrtc-server as signaling server and a TURN server.
Now, I want to send data from peer 1 to peer 2. The data is a simple int, sent every second in order to synchronise counters.
I try to send data using _socket.send(_encoder.convert(request)); (Signaling.dart), but if the type is not known ("peers", "offer", ...), but the signaling server blocks my message (Unknown type). It would have been a good solution...

Do you have any idea to send simple text message to another peer, or to a room, I don't care if other peers can read the messages !

Thanks,
Luc

@LucMoreau33560
Copy link
Author

Hi,

I did it !
I added some code in singaler.go .
Very simple : copy the case "candidate" block and paste it just above. Then rename "candidate" into "counter".
So now, my signaling server relay the counter message. :-)

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

1 participant