feat: add native module realtime transport
This commit is contained in:
@@ -51,6 +51,9 @@ async function registerAndCaptureRoutes(): Promise<{
|
||||
},
|
||||
},
|
||||
moduleId: "example",
|
||||
// The template deliberately declares no realtime channel, proving modules opt in rather than
|
||||
// receiving a mandatory feature-specific scaffold.
|
||||
realtime: { channel: () => undefined },
|
||||
});
|
||||
return { provided, routes };
|
||||
}
|
||||
@@ -138,6 +141,7 @@ describe("module template", () => {
|
||||
moduleId: "example",
|
||||
params: Object.freeze({}),
|
||||
principal: ANONYMOUS_PRINCIPAL,
|
||||
realtime: { publish: () => undefined },
|
||||
services,
|
||||
// The template declares no logical bucket, so it receives storage that refuses every one —
|
||||
// present rather than `undefined`, so module code never branches on whether the host has it.
|
||||
@@ -182,6 +186,7 @@ describe("module template", () => {
|
||||
moduleId: "example",
|
||||
params: Object.freeze({}),
|
||||
principal: ANONYMOUS_PRINCIPAL,
|
||||
realtime: { publish: () => undefined },
|
||||
services: Object.freeze({ database: fakeModuleDatabase(fakeRows) }),
|
||||
storage: EMPTY_MODULE_STORAGE,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user