# Testing react native webrtc

**URL:** <https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436>\
**Category:** Uncategorized\
**Created:** [January 13, 2020, 6:24am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436 "2020-01-13T06:24:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cryptotractor](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/cryptotractor/32/131_2.png) [@cryptotractor](https://react-native-webrtc.discourse.group/u/cryptotractor)\
**Post date:** [January 13, 2020, 6:24am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436/1 "2020-01-13T06:24:26Z")

</div>

What’s the best what to set up a webrtc test that will connect from mobile to web in peer to peer? Does anyone have an example ?

---

<div class="post-metadata">

**Author:** ![baconcheese113](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/baconcheese113/32/123_2.png) [@baconcheese113](https://react-native-webrtc.discourse.group/u/baconcheese113)\
**Post date:** [January 14, 2020, 1:22am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436/2 "2020-01-14T01:22:57Z")

</div>

@cryptotractor There’s a lot in that question. And “best” is based on your preferences/requirements.  
If you don’t care about managing all the details of the connection, then there are lots of abstractions like [PeerJs](https://peerjs.com/) that you can use for the WebRTC part of it.

There are 3 main components that you’ll need:

1. A web app using the [built-in webRTC lib](https://webrtc.org/start/)
2. A signalling server to initiate the new connections, probably using [sockets](https://socket.io/)
3. A native app using this package…[react-native-webRTC](https://github.com/react-native-webrtc/react-native-webrtc)

Both of the clients will hit the same signalling server back-end, which will negotiate the connection.

I’d recommend tackling this in that order as well. Get a frontend working locally with video calls, then add in a signalling server to connect from one local browser to another. Then attempt them native apps.

I maintain an example project of video calling locally using react-native-webrtc calling here [https://github.com/baconcheese113/react-native-webrtc-minimal](https://github.com/baconcheese113/react-native-webrtc-minimal)

---

<div class="post-metadata">

**Author:** ![cryptotractor](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/cryptotractor/32/131_2.png) [@cryptotractor](https://react-native-webrtc.discourse.group/u/cryptotractor)\
**Post date:** [January 14, 2020, 1:40am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436/3 "2020-01-14T01:40:32Z")

</div>

Thank you so much for the information it is extremely helpful. I actually used that example and have it working locally. I found an example using socket .io and node.js to build it out but the app that I’m wanting to put it in I’m using AWS for . Another issue it needs to be hipaa compliant my app is and the AWS part is so I guess I need to find an encrypted signaling ? Any recommendations?

---

<div class="post-metadata">

**Author:** ![baconcheese113](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/baconcheese113/32/123_2.png) [@baconcheese113](https://react-native-webrtc.discourse.group/u/baconcheese113)\
**Post date:** [January 14, 2020, 2:12am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436/4 "2020-01-14T02:12:27Z")

</div>

Not sure about that, [socket.io](http://socket.io) can handle [authentication middleware](https://socket.io/docs/migrating-from-0-9/#Namespace-authorization) but I’m not that familiar with hipaa’s requirements

---

<div class="post-metadata">

**Author:** ![sainath-everest](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@sainath-everest](https://react-native-webrtc.discourse.group/u/sainath-everest)\
**Post date:** [January 22, 2020, 5:54am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436/5 "2020-01-22T05:54:00Z")

</div>

I have tried your webrtc sample example.Can you give some inputs on how to integrate with this my back end server ?

---

<div class="post-metadata">

**Author:** ![abdymm](https://yyz2.discourse-cdn.com/free1/user_avatar/react-native-webrtc.discourse.group/abdymm/32/155_2.png) [@abdymm](https://react-native-webrtc.discourse.group/u/abdymm)\
**Post date:** [February 14, 2020, 3:23am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436/6 "2020-02-14T03:23:17Z")

</div>

Hi @baconcheese113 thanks for your great advance, i already create a web app and di signaling server and in one device i just got the remote stream id, but why it cannot rendered on RTCView ?

---

<div class="post-metadata">

**Author:** ![smarttin](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@smarttin](https://react-native-webrtc.discourse.group/u/smarttin)\
**Post date:** [August 13, 2020, 8:14am UTC](https://react-native-webrtc.discourse.group/t/testing-react-native-webrtc/436/7 "2020-08-13T08:14:12Z")

</div>

Hi could you please link me to the [socket.io](http://socket.io) and node.js example you found.  
would be very helpful thanks
