Overview of sst.aws.Realtime component
The sst.aws.Realtime component enables publishing and subscribing to messages in real-time using a topic-based messaging network powered by AWS IoT. It allows communication via WebSockets in the browser and on the server.
Critical Constraint: AWS IoT is shared across all apps and stages within a single AWS account and region (there is only one IoT endpoint per region). To avoid collisions between different apps or stages, you must prefix your topics with the app name and stage name (e.g., ${Resource.App.name}/${Resource.App.stage}/topic-name).