Echo is incompatible with BROADCAST_CONNECTION=ably
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start with Echo's PusherConnector and compare its Ably subscription channel with the Laravel broadcasting documentation linked in the issue. Reproduce the setup with BROADCAST_CONNECTION=ably and inspect the browser and Ably console logs. Done means Echo subscribes to the same channel format Laravel uses and receives the broadcast event.
Written by the indexing model from the issue text.
Description
Echo Version
2.2.0
Laravel Version
12.25.0
PHP Version
8.4.11
NPM Version
PNPM 10.15.0
Database Driver & Version
No response
Description
I tried setting up broadcasting with Ably according to the docs: https://laravel.com/docs/12.x/broadcasting.#client-ably. After following all steps and debugging, I concluded that Laravel ably driver is incompatible with Echo.
The problem is:
- Laravel
ablydriver broadcasts toprivate:broadcast(colon). laravel-echolibrary subscribes toprivate-broadcast(hyphen).
In order to fix this, Echo should use colons when subscribing to Ably. For the purpose of confirming that this approach would work, I edited PusherConnector in Echo source locally. I replaced colons to hyphens and Echo started working as expected.
Steps To Reproduce
- Follow Laravel docs to setup broadcasting with Ably.
- Setup basic front-end for testing.
- Run the queue using
sail artisan queue:workor similar. - Set
Pusher.logToConsole = true;. - Test using the front-end. You will see that Ably does not return anything.
- Check front-end logs in the console. The subscribed endpoint uses a hyphen.
- Check Ably dev console using their web client. Laravel uses a colon to broadcast with
BROADCAST_CONNECTION=ably.
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 209
- Avg merge
- 17h 20m
- Merged PRs (30d)
- 7
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from laravel/echo
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
useEchoPublic does not listen to events unless the listen function is explicitly called in Vue.Openneeds more info
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
code-yeongyu/oh-my-openagent#9039 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Tencent/teamai-cli#862 ·
Maintainers usually reply within 1 day
-
bug good first issue hacktoberfest redis
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
libredb/libredb-studio#1164 ·
Maintainers usually reply within 1 day
-
flake
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day