feat: Upgrade Redis 3 to 4 for LiveQuery (#8333)
This commit is contained in:
@@ -11,6 +11,15 @@ class ParseCloudCodePublisher {
|
||||
this.parsePublisher = ParsePubSub.createPublisher(config);
|
||||
}
|
||||
|
||||
async connect() {
|
||||
if (typeof this.parsePublisher.connect === 'function') {
|
||||
if (this.parsePublisher.isOpen) {
|
||||
return;
|
||||
}
|
||||
return Promise.resolve(this.parsePublisher.connect());
|
||||
}
|
||||
}
|
||||
|
||||
onCloudCodeAfterSave(request: any): void {
|
||||
this._onCloudCodeMessage(Parse.applicationId + 'afterSave', request);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user