tlaverdure / laravel-echo-server

Socket.io server for Laravel Echo
MIT License
2.65k stars 511 forks source link

A subscription with Laravel to PresenceChannelUpdated recieves no messages. #515

Open denga opened 4 years ago

denga commented 4 years ago

I create a new laravel project and add a command that listens to presence updates.

  1. Enable publish presence updates and set a keyPrefix
    
    "databaseConfig": {
    "redis": {
        "keyPrefix": "laravel_chat_database_"
    },
        "publishPresence": true
    }
2. Create a command  with

Redis::subscribe(['PresenceChannelUpdated'], function ($message) { dump($message); });


4. No messages appear
5. When I remove the prefix everything works

**Publishing of update events should also use the keyPrefix.**
kolirt commented 3 years ago

same problem. @tlaverdure can you fix it?