laravel / reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.
https://reverb.laravel.com
MIT License
1.05k stars 76 forks source link

ClientEvents #113

Closed jbarreraballestas closed 5 months ago

jbarreraballestas commented 5 months ago

Requesting implementation of client-side event handling feature.

https://laravel.com/docs/broadcasting#client-events

Echo.private(`chat.${roomId}`)
    .whisper('typing', {
        name: this.user.name
    });

Echo.private(`chat.${roomId}`)
    .listenForWhisper('typing', (e) => {
        console.log(e.name);
    });
joedixon commented 5 months ago

Hey @jbarreraballestas, client whispers are already supported.