workerman icon indicating copy to clipboard operation
workerman copied to clipboard

Support for WebTransport

Open akiirax opened this issue 6 months ago • 9 comments

Hello @walkor

Since you're the most reliable person to ask such a question, do you plan to support WebTransport?

Any suggestions on what to use now if I want to have a WebTransport server?

akiirax avatar Jul 04 '25 00:07 akiirax

Any luck for a reply or a redirection 🙄

akiirax avatar Jul 11 '25 21:07 akiirax

Not currently planned, but possible in the future.

walkor avatar Jul 13 '25 11:07 walkor

Thanks @walkor

What do you recommend on how to move forward with currently?

Do you support sponsored development?

akiirax avatar Jul 13 '25 19:07 akiirax

I'm not sure why you need WebTransport—perhaps WebSocket is already sufficient for your application?

I believe implementing HTTP3 (QUIC) + WebTransport purely in PHP would require significant effort. Perhaps finding an existing HTTP3 + WebTransport proxy service (though I'm not sure if such a solution exists) and then forwarding the data to Workerman might be a more feasible approach. Yes, I support sponsored development.

walkor avatar Jul 14 '25 07:07 walkor

The primary goal is having a lightweight communication protocol for an application launching in countries with high latency and mostly unreliable Internet connections. The service this application is providing is a mission critical an important to be up and reachable in all conditions. WebTrabsport tends to be handling that out of the box already relying on QUIC/UDP, versus WebSockets.

Can you have a Quick Look at the latest RFC and tell me https://datatracker.ietf.org/doc/draft-ietf-webtrans-http3/

Not entirely sure, but MQTT-SN which operates over UDP would've been an option here but not sure if there's a PHP implementation for it.

Also, relying on WebTrabsport would allow for operating behind reverse proxies like Cloudflare and Fastly and alike.

That's why all fingers point towards WebTransport.

akiirax avatar Jul 14 '25 07:07 akiirax

WebTransport, built on the QUIC/UDP protocol, appears more suitable for high-latency and unstable network environments, but its implementation in PHP is relatively complex. MQTT-SN serves as another solution for unreliable networks, but the lack of direct PHP client libraries makes it less feasible.

walkor avatar Jul 14 '25 08:07 walkor

Well said and understood.

Which of these would you see as a fit for adding as a feature or engaging in a sponsored development?

How can we communicate private (if you prefer) regarding this?

akiirax avatar Jul 14 '25 09:07 akiirax

Which of these would you see as a fit for adding as a feature or engaging in a sponsored development?

It's difficult to say, because I need to have a deeper understanding of your application needs, including the development languages and frameworks used on both the client and server sides, as well as whether your application client is based on a browser or other platforms. WebTransport is a relatively new technology that relies on the support of client browsers, and currently not all browsers support this feature. Additionally, the support from CDN platforms is also a consideration; for example, I have not seen any mention of WebTransport support in the official Cloudflare documentation.

I am open to private communication and can be reached via email at [email protected].

walkor avatar Jul 15 '25 09:07 walkor

@akiirax what do you think that you need WebTransport ??

I'm usign SSE and is working perfect !! It's a consolidated technology working really good for a lot of my projects.

And remember the new thinks are not always the best !!

PD: if don't arrive an UDP also don't arrive a TCP !! and vice versa

joanhey avatar Jul 15 '25 14:07 joanhey