Does trongate have plans for supporting Server Sent Events and WebSockets?
Digging around I found an example for SSE (https://kevinchoppin.dev/blog/server-sent-events-in-php)
WebSockets seems to need a little bit of async..
AMP PHP perhaps?
- Not sure if PHP coroutines and generators could suffice though :)
Anyways, just wanted to check in to hear whether it’s of any interest :)
SSE & (Web)Socket support
4 years ago
4 years ago
#1
4 years ago
#2
Hello Sasin91,
Trongate is extremely fast. Benchmarks blows the competition out of the water. So not sure if this is relevant.
Maybe someone more familiar would answer.
Dan
Trongate is extremely fast. Benchmarks blows the competition out of the water. So not sure if this is relevant.
Maybe someone more familiar would answer.
Dan
4 years ago
#3
That's true Dan and it is also very stable!
DC is looking into push requests for the help desk app, and will be doing a live stream on it, this is using the push API and not dissimilar to websockets. Stay tuned.
DC is looking into push requests for the help desk app, and will be doing a live stream on it, this is using the push API and not dissimilar to websockets. Stay tuned.
4 years ago
#4
Hi,
I think this is something that would be handled at the browser level and I'm not sure if it's the job of Trongate or even PHP to handle that type of thing.
However, it's a legitimate question and one that I'm personally eager to solve. At the moment, I simply don't have an answer.
If it was a feature that I desperately needed today then I would head to Google and search for 'realtime database'. In the past, I've have had Firebase working with PHP and I know that there are alternative technologies that do the same job.
Dan makes a good point about the push thing. Unfortunately, nobody is teaching it and the documentation is duff. If you can understand the information contained here:
https://developer.mozilla.org/en-US/docs/Web/API/Push_API
...then you'll be able to solve your challenge without third-party libraries. You'll also be a better developer than me!
I think this is something that would be handled at the browser level and I'm not sure if it's the job of Trongate or even PHP to handle that type of thing.
However, it's a legitimate question and one that I'm personally eager to solve. At the moment, I simply don't have an answer.
If it was a feature that I desperately needed today then I would head to Google and search for 'realtime database'. In the past, I've have had Firebase working with PHP and I know that there are alternative technologies that do the same job.
Dan makes a good point about the push thing. Unfortunately, nobody is teaching it and the documentation is duff. If you can understand the information contained here:
https://developer.mozilla.org/en-US/docs/Web/API/Push_API
...then you'll be able to solve your challenge without third-party libraries. You'll also be a better developer than me!