feat(web-next): register realtime-ping inbound (env-gateable)

This commit is contained in:
2026-05-08 23:20:58 +02:00
parent 90ef577b9d
commit 2351ca6249
2 changed files with 8 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ export const realtimePongChannel = defineRealtimeChannel(
export function realtimePingInboundDescriptor(
broadcaster: IRealtimeBroadcaster,
): IInboundDescriptor<typeof realtimePingChannel.name, typeof pingSchema> {
): IInboundDescriptor<"realtime.ping", z.ZodType<PingPayload>> {
return {
descriptor: realtimePingChannel,
handler: async (input: PingPayload, ctx: RealtimeContext): Promise<void> => {