Usage with Non-JavaScript Clients #55
Replies: 2 comments 7 replies
-
Hi @nilskretschmer ! Laravel Echo or WaveJS are just clients to connect to your server. Since the SSE connection is simple HTTP request and considering that you need machine to machine communication you are be able to implement SSE connection with any HTTP client (like Guzzle). Authentication and authorization processes are also just a HTTP request params processing by Laravel server. Let me know if you will have any troubles with implementation. |
Beta Was this translation helpful? Give feedback.
-
But I think Laravel Wave is Pusher compatible (because Laravel Broacasting is)? So to utilize these features I would need to implement some Pusher compatible PHP client to connect to the Laravel backend and listen to default Broadcasting Events and/or use presence/private channels. Sure I can use Guzzle to just connect to an SSE endpoint. But that's what I already do without using wave or any default Laravel Broadcasting Events. It's currently basically like:
And on the client-side:
So no wave, no Laravel Events just SSE and Passport Client Credential Tokens for Auth. |
Beta Was this translation helpful? Give feedback.
-
Hi,
thanks for this awesome package and your work on it!
Currently I investigate if I could use it within a project.
I have the following setup:
I was thinking about using Websockets/SSE where each device initiates a connection against the Control Server which is publicly available. The problem is: How can I connect against the Laravel Backend - either using Websockets or SSE (using this package)? I would need some Laravel Echo for PHP or any other general purpose non-javascript language SDK. I think it should be possible using Guzzle using a long-running process/artisan command - but how to handle authentication/authorization?
Any thoughts on how to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions