Open veeyka opened 1 year ago
@veeyka did you manage to get it working? I've built a couple of demos last year where this still worked, but now I'm having no luck anymore. I think this package is just not compatible with later versions of react-native-webrtc
anymore.
I'd love to fork this and maintain a package for RN that works with the latest versions or peerjs
and react-native-webrtc
, but would probably need some help. I've tried a couple of times in the past but without success. If anyone wants to team up, I'm all down for it.
What I ended up doing was to copy peerjs
's .ts
source files into my RN app (which contains react-native-webrtc
) and then made some small adjustments to the code to get it working and that worked for me.
I just needed a quick win cause I have a demo in a few days, but once I find the time I'd love to figure out a better way of maintaining a React Native PeerJS package.
@matallui Do you have open source repo where you imlemented peerjs with react-native webtrc? I am interested to implement in my learning project.
@alihaxan020 I don't right now, but once I find some time I'll try to put something together to share.
@alihaxan020 I don't right now, but once I find some time I'll try to put something together to share.
Hey mate, I'm also learning and if you made any advancement than please let me know
@savaliyap @alihaxan020 Check out my new project Artico. It works both in web and React Native and has working examples for both apps in Github. It provides the same functionality as PeerJS and more. If you find any bugs or that anything is missing, feel free to open an Issue and I'll work on it. Cheers!
@matallui Thank you so much for your effort. It is working . Waiting for expo react native documentation for absolute beginner
is this lib still working correct ? im using it . every thing is ok . just call.on("stream is not fireing at all . my code is simple like docs every where .
React.useEffect(()=>{ socket.clientSocket.on("connect", ()=>{ console.log("----- - - --- - - socket connection") });
},[])