LiveQuery: Add options for Redis (#5584)

Closes: https://github.com/parse-community/parse-server/issues/5387
This commit is contained in:
Diamond Lewis
2019-05-11 19:13:41 -05:00
committed by GitHub
parent b9c936f594
commit 0ce4eeae72
7 changed files with 41 additions and 6 deletions

View File

@@ -76,6 +76,7 @@
* @interface LiveQueryOptions
* @property {String[]} classNames parse-server's LiveQuery classNames
* @property {Adapter<PubSubAdapter>} pubSubAdapter LiveQuery pubsub adapter
* @property {Any} redisOptions parse-server's LiveQuery redisOptions
* @property {String} redisURL parse-server's LiveQuery redisURL
*/
@@ -88,6 +89,7 @@
* @property {String} masterKey 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.
* @property {Number} port The port to run the LiveQuery server, defaults to 1337.
* @property {Adapter<PubSubAdapter>} pubSubAdapter LiveQuery pubsub adapter
* @property {Any} redisOptions parse-server's LiveQuery redisOptions
* @property {String} redisURL parse-server's LiveQuery redisURL
* @property {String} serverURL 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.
* @property {Number} websocketTimeout 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).