PieSocket React Native

PieSocketJS supports React native projects with one minor change.

You need to add one more dependency (react-native-get-random-values) along with piesocket-js.

npm install piesocket-js
npm install react-native-get-random-values

This library works as a polyfill for the global crypto.getRandomValues.

Add following line to your index.js

import 'react-native-get-random-values'
import PieSocket from 'piesocket-js';

Now you are ready to use PieSocket Channels as per the PieSocketJS Documentation.