laravel icon indicating copy to clipboard operation
laravel copied to clipboard

[9.x] Add environment variables for new AblyBroadcaster

Open owenpearson opened this issue 1 year ago • 2 comments

Note: this PR is one of four parallel pull requests to add first class support for Ably to Laravel. Please find the other PRs here:

  • laravel/docs#8120
  • laravel/framework#43685
  • laravel/echo#351

Background: the current Ably broadcaster uses the Pusher JavaScript SDK and the documentation instructs users to use Ably with the Pusher compatibility mode enabled. We’ve received a lot of feedback that various features of the Ably Laravel integration don’t work as expected, often caused by the fact that there’s a dependency on the Pusher JavaScript SDK which we have no control over. This collection of PRs adds a new broadcaster which uses the ably-js SDK which means that we can ensure that the Ably broadcaster will remain stable. We are more than happy to take feedback and answer any questions about the work presented here :)

Adds example environment variables to .env.example for the new AblyBroadcaster and references them in broadcasting.php.

owenpearson avatar Aug 12 '22 16:08 owenpearson

Hello @owenpearson, I don't know if this is your problem, but in my case I used the lib wrench to create a Pure WebSocket communication in PHP using laravel. Hope this helps! https://github.com/varspool/Wrench

oseiasPlenoIMOB avatar Aug 19 '22 20:08 oseiasPlenoIMOB

Hello @owenpearson, I don't know if this is your problem, but in my case I used the lib wrench to create a Pure WebSocket communication in PHP using laravel. Hope this helps! https://github.com/varspool/Wrench

Hi @oseiasPlenoIMOB , this is not related to the PR. You should read more about https://laravel.com/docs/9.x/broadcasting

sacOO7 avatar Aug 21 '22 19:08 sacOO7