LiveQuery: Add options for Redis (#5584)
Closes: https://github.com/parse-community/parse-server/issues/5387
This commit is contained in:
@@ -377,6 +377,11 @@ module.exports.LiveQueryOptions = {
|
||||
help: 'LiveQuery pubsub adapter',
|
||||
action: parsers.moduleOrObjectParser,
|
||||
},
|
||||
redisOptions: {
|
||||
env: 'PARSE_SERVER_LIVEQUERY_REDIS_OPTIONS',
|
||||
help: "parse-server's LiveQuery redisOptions",
|
||||
action: parsers.objectParser,
|
||||
},
|
||||
redisURL: {
|
||||
env: 'PARSE_SERVER_LIVEQUERY_REDIS_URL',
|
||||
help: "parse-server's LiveQuery redisURL",
|
||||
@@ -421,6 +426,11 @@ module.exports.LiveQueryServerOptions = {
|
||||
help: 'LiveQuery pubsub adapter',
|
||||
action: parsers.moduleOrObjectParser,
|
||||
},
|
||||
redisOptions: {
|
||||
env: 'PARSE_LIVE_QUERY_SERVER_REDIS_OPTIONS',
|
||||
help: "parse-server's LiveQuery redisOptions",
|
||||
action: parsers.objectParser,
|
||||
},
|
||||
redisURL: {
|
||||
env: 'PARSE_LIVE_QUERY_SERVER_REDIS_URL',
|
||||
help: "parse-server's LiveQuery redisURL",
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -196,6 +196,8 @@ export interface LiveQueryOptions {
|
||||
/* parse-server's LiveQuery classNames
|
||||
:ENV: PARSE_SERVER_LIVEQUERY_CLASSNAMES */
|
||||
classNames: ?(string[]);
|
||||
/* parse-server's LiveQuery redisOptions */
|
||||
redisOptions: ?any;
|
||||
/* parse-server's LiveQuery redisURL */
|
||||
redisURL: ?string;
|
||||
/* LiveQuery pubsub adapter */
|
||||
@@ -220,6 +222,8 @@ export interface LiveQueryServerOptions {
|
||||
/* The port to run the LiveQuery server, defaults to 1337.
|
||||
:DEFAULT: 1337 */
|
||||
port: ?number;
|
||||
/* parse-server's LiveQuery redisOptions */
|
||||
redisOptions: ?any;
|
||||
/* parse-server's LiveQuery redisURL */
|
||||
redisURL: ?string;
|
||||
/* LiveQuery pubsub adapter */
|
||||
|
||||
Reference in New Issue
Block a user