You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, `useStream` may be used to consume the event stream. After providing your stream URL, the hook will automatically update the `message` with the concatenated response as messages are returned from your Laravel application:
441
+
Then, `useEventStream` may be used to consume the event stream. After providing your stream URL, the hook will automatically update the `message` with the concatenated response as messages are returned from your Laravel application:
import { useEventStream } from "@laravel/stream-vue";
456
456
457
-
const { message } = useStream("/chat");
457
+
const { message } = useEventStream("/chat");
458
458
</script>
459
459
460
460
<template>
461
461
<div>{{ message }}</div>
462
462
</template>
463
463
```
464
464
465
-
The second argument given to `useStream` is an options object that you may use to customize the stream consumption behavior. The default values for this object are shown below:
465
+
The second argument given to `useEventStream` is an options object that you may use to customize the stream consumption behavior. The default values for this object are shown below:
0 commit comments