Namespace: Meteor

Meteor

Methods

(static) connect(endpoint, optionsopt)

Connect to a Meteor server using a given websocket endpoint. The endpoint needs to start with `ws://` or `wss://` and has to end with `/websocket`.
Parameters:
Name Type Attributes Description
endpoint string required, websocket of Meteor server to connect with
options object <optional>
optional options
Properties
Name Type Attributes Description
suppressUrlErrors boolean <optional>
suppress error when websocket endpoint is invalid
AsyncStorage AsyncStorage <optional>
suppress error when websocket endpoint is invalid
reachabilityUrl string <optional>
a URL that is used by @react-native-community/netinfo to run a connection check using a 204 request
Source:

(static) enableVerbose()

Calling this enables extended internal logging to console
Source:

(static) getData() → {Data}

returns the Data layer implementation
Source:
Returns:
Type
Data

(static) status() → {object}

Reactive. Returns the current connection status.
Source:
Returns:
`{connected: boolean, status: string}`
Type
object