I am a newbie to web development and WebTransport. May I ask a question which might be stupid? I am learning to use WebTransport from this sample
https://github.com/GoogleChrome/samples/tree/gh-pages/webtransport. When I send a datagram from the client side (WebTransport), the client can receive the reply from the server (aioquic) immediately, which is the length of the data in this sample. However, when I try to send a datagram from the server side directly, it takes 5~10 seconds for the client to receive the data. In both cases, I used connection.send_datagram_frame(message) on the server side and var reader = transport.datagramReadable.getReader(); await reader.read() on the client side, just the same as the sample. May I ask why such a delay of 5~10 seconds happens?
I used localhost in the test so I think it is not due to network problem. I also tried UnidirectionalStream and had the same problem. I'd like to develop a real-time communication web app so I wish to avoid this delay.