0.0.21 • Published 5 months ago
react-native-mosquito-transport v0.0.21
react-native-mosquito-transport
React native javascript sdk for mosquito-transport.
Installation
npm install react-native-mosquito-transport --save
or using yarn
yarn add react-native-mosquito-transport
Usage
import RNMosquitoTransport from "react-native-mosquito-transport";
RNMosquitoTransport.initializeCache({
cachePassword: "****",
cacheProtocol: "sqlite",
});
const mclient = new RNMosquitoTransport({
projectUrl: "http://localhost:3444",
accessKey: "SERVER_ACCESS_KEY",
});
Additional Documentations
- RNMosquitoTransport Constructor
- RNMosquitoTransport Methods
- initialCache
- getDatabase
- collection
- auth
- storage
- fetchHttp
- listenReachableServer
- getSocket
- batchWrite
- TIMESTAMP
- AUTH_PROVIDER_ID
- DOCUMENT_EXTRACTION
- GEO_JSON
- FIND_GEO_JSON
- DoNotEncrypt
RNMosquitoTransport Constructor
dbName
dbUrl
projectUrl
this is the base url of