-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9902 from RocketChat/apps-multi-instance-enablement
[OTHER] Fix Apps not working on multi-instance deployments
- Loading branch information
Showing
16 changed files
with
306 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { AppWebsocketReceiver } from './websockets'; | ||
import { AppWebsocketReceiver, AppEvents } from './websockets'; | ||
|
||
export { AppWebsocketReceiver }; | ||
export { AppWebsocketReceiver, AppEvents }; |
58 changes: 53 additions & 5 deletions
58
packages/rocketchat-apps/client/communication/websockets.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export class AppDetailChangesBridge { | ||
constructor(orch) { | ||
this.orch = orch; | ||
} | ||
|
||
onAppSettingsChange(appId, setting) { | ||
try { | ||
this.orch.getNotifier().appSettingsChange(appId, setting); | ||
} catch (e) { | ||
console.warn('failed to notify about the setting change.', appId); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { AppMethods} from './methods'; | ||
import { AppsRestApi } from './rest'; | ||
import { AppWebsocketNotifier } from './websockets'; | ||
import { AppEvents, AppServerNotifier, AppServerListener } from './websockets'; | ||
|
||
export { | ||
AppMethods, | ||
AppsRestApi, | ||
AppWebsocketNotifier | ||
AppEvents, | ||
AppServerNotifier, | ||
AppServerListener | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.