IMO it’s much easier to just drop a proxy like Caddy in front of your websocket app to add WSS/TLS support. It’s dead simple to do so, and it’s all managed for you.
You can even make the websocket app available at the same URL/port as your main app by using request matchers that look for the websocket headers. Let me know if you want more details, I can give a deeper explanation.
Sorry, I don’t get it. Is this directed only at the Bonus part, or the whole thing? Because what I was trying to accomplish here is to have a websocket app built in PHP performing CRUDL operations
Hello guys, I’ve built something a few months ago, and I finally took the time to isolate it in it’s own git repository and write a little bit about why and how I did it.
Any criticism is welcome. Thank you all, and have a nice week!
Members
Online