LiveQueryServerOptions

LiveQueryServerOptions

Properties:
Name Type Description
appId String

This string should match the appId in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same appId.

cacheTimeout Number

Number in milliseconds. When clients provide the sessionToken to the LiveQuery server, the LiveQuery server will try to fetch its ParseUser's objectId from parse server and store it in the cache. The value defines the duration of the cache. Check the following Security section and our protocol specification for details, defaults to 5 * 1000 ms (5 seconds).

keyPairs Any

A JSON object that serves as a whitelist of keys. It is used for validating clients when they try to connect to the LiveQuery server. Check the following Security section and our protocol specification for details.

logLevel String

This string defines the log level of the LiveQuery server. We support VERBOSE, INFO, ERROR, NONE, defaults to INFO.

masterKey String

This string should match the masterKey in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same masterKey.

port Number

The port to run the LiveQuery server, defaults to 1337.

pubSubAdapter Adapter.<PubSubAdapter>

LiveQuery pubsub adapter

redisOptions Any

parse-server's LiveQuery redisOptions

redisURL String

parse-server's LiveQuery redisURL

serverURL String

This string should match the serverURL in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same serverURL.

websocketTimeout Number

Number of milliseconds between ping/pong frames. The WebSocket server sends ping/pong frames to the clients to keep the WebSocket alive. This value defines the interval of the ping/pong frame from the server to clients, defaults to 10 * 1000 ms (10 s).

wssAdapter Adapter.<WSSAdapter>

Adapter module for the WebSocketServer