Company
Date Published
Author
-
Word count
944
Language
English
Hacker News points
None

Summary

The Inngest team has released a new developer preview called Realtime, which allows developers to stream updates from their Inngest functions to users in real-time. This feature is particularly useful for long-running tasks and enables bi-directional communication between users and Ingest functions through the use of channels and topics. The `publish()` method is available in the Ingest TypeScript and Go SDKs, providing a flexible and fully typed Realtime API. Developers can subscribe to channels using the `useInngestSubscription()` hook from React components or by directly subscribing from the server using the `subscribe()` function. Realtime updates are built upon Ingest's protocol, ensuring secure, low-latency, and at-most-once delivery of messages. The feature is already available as a developer preview in the Ingest TypeScript and Go SDKs, with some details subject to change during this period.