Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Add the possibility to publish redis events for laravel-echo whisper()#478

Open
timmy1420 wants to merge 7 commits into
tlaverdure:masterfrom
timmy1420:master
Open

Add the possibility to publish redis events for laravel-echo whisper()#478
timmy1420 wants to merge 7 commits into
tlaverdure:masterfrom
timmy1420:master

Conversation

@timmy1420

Copy link
Copy Markdown

For months I've been searching for a way how to emit whisper events from the client side.
As we all know, in socket.io we can listen to emit events, but I'm missing this feature in laravel-echo.

Here are the changes I made:

  • I added the PresenceChannelWhisper publish event to listen to all whisper broadcast client events on the server side.
  • Have redis publishing an optional feature. Just like adding the "publishPresence" key, I added "publishWhisper" key to check for whisper events

@jorgecastillodp

Copy link
Copy Markdown

@tlaverdure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants