docs: fix client.event.subscribe example (#2280)

This commit is contained in:
Aiden Cline
2025-08-27 11:42:09 -05:00
committed by GitHub
parent 0fbd7c84fd
commit 8381760b27

View File

@@ -307,8 +307,8 @@ await client.auth.set({
```javascript
// Listen to real-time events
const eventStream = await client.event.subscribe()
for await (const event of eventStream) {
const events = await client.event.subscribe()
for await (const event of events.stream) {
console.log("Event:", event.type, event.properties)
}
```