greymass / anchor-link

Persistent, fast and secure signature provider for EOSIO chains built on top of EOSIO Signing Requests (EEP-7)
Other
53 stars 22 forks source link

React Native WS #28

Open jafri opened 2 years ago

jafri commented 2 years ago

RN WS needs binaryType to work properly

            const socket = new WebSocket(socketUrl);

// new
            if (typeof navigator != 'undefined' && navigator.product == 'ReactNative') {
                (socket as any).binaryType = 'blob'
            }