React native javascript sdk for mosquito-transport (https://github.com/brainbehindx/mosquito-transport)
npm install react-native-mosquito-transportReact native javascript sdk for mosquito-transport.
``sh`
npm install react-native-mosquito-transport --save
or using yarn
`sh`
yarn add react-native-mosquito-transport
internal bson
`js
import RNMosquitoTransport from "react-native-mosquito-transport";
// uses sqlite to cache it data by default
RNMosquitoTransport.initializeCache();
const mclient = new RNMosquitoTransport({
projectUrl: "http://localhost:3444"
});
``
- RNMosquitoTransport Constructor
- dbName
- dbUrl
- projectUrl
- disableCache
- maxRetries
- enableE2E_Encryption
- serverE2E_PublicKey
- extraHeaders
- castBSON
- RNMosquitoTransport Methods
- initialCache
- getDatabase
- collection
- auth
- storage
- fetchHttp
- listenReachableServer
- getSocket
- batchWrite
- TIMESTAMP
- AUTH_PROVIDER_ID
- DOCUMENT_EXTRACTION
- GEO_JSON
- FIND_GEO_JSON
- DoNotEncrypt
this is the base url of