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

client for react native #418

Closed
geraldsamosir opened this issue Jan 31, 2018 · 6 comments
Closed

client for react native #418

geraldsamosir opened this issue Jan 31, 2018 · 6 comments

Comments

@geraldsamosir
Copy link

can peer js connect with react native ?
there are any client ?

@kidandcat
Copy link
Member

No native clients exist. but some people suggest to host a webview:
https://stackoverflow.com/a/28370368

@awesomemarcus
Copy link

Hello have one tried creating react native version for this?

@kidandcat
Copy link
Member

kidandcat commented Mar 22, 2019 via email

@TheadoreL
Copy link

@geraldsamosir Have you ever try oney/react-native-webrtc

@Zemke
Copy link

Zemke commented Sep 12, 2019

I don't thin react native has the same webrtc API than the browsers.

@geraldsamosir Have you ever try oney/react-native-webrtc

Interesting enough, oney/react-native-webrtc (now react-native-webrtc/react-native-webrtc) is a React Native module that provides the API to React Native. Meaning, PeerJS could then also work for React Native.

PeerJS, however, relies on the window object and would therefore not run in a React Native app without further modifications. But the Browser Web API for WebRTC is there. Just need tot make PeerJS not rely on the Browser environment.

Then again there's web-mech/peerjs-nodejs which is PeerJS for Node which wouldn't require window to be there. This might work in a React Native world. Edit: It relies on an Electron process which doesn't work in React Native, I guess.

@Zemke
Copy link

Zemke commented Sep 18, 2019

I put myself to it: https://github.com/Zemke/react-native-peerjs

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