mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Check channels/events
This commit is contained in:
@@ -16,7 +16,14 @@
|
||||
|
||||
return realtime
|
||||
.forProject($page.params.region, $page.params.project)
|
||||
.subscribe<Models.ProxyRule>('console', (data) => domain.set(data.payload));
|
||||
.subscribe<Models.ProxyRule>('console', (message) => {
|
||||
if (
|
||||
message.channels.includes(`projects.${$page.params.project}`)
|
||||
&& message.events.includes('rules.*')
|
||||
) {
|
||||
domain.set(message.payload);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
async function onFinish() {
|
||||
|
||||
Reference in New Issue
Block a user