docs: fix client.event.subscribe example

This commit is contained in:
rekram1-node 2025-08-27 11:41:41 -05:00
parent 0fbd7c84fd
commit d2d7220933

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)
}
```