docs: fix client.event.subscribe example (#2280)
This commit is contained in:
@@ -307,8 +307,8 @@ await client.auth.set({
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// Listen to real-time events
|
// Listen to real-time events
|
||||||
const eventStream = await client.event.subscribe()
|
const events = await client.event.subscribe()
|
||||||
for await (const event of eventStream) {
|
for await (const event of events.stream) {
|
||||||
console.log("Event:", event.type, event.properties)
|
console.log("Event:", event.type, event.properties)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user