Requests in same WebSocket connection are processed synchronously.

Hi there

From experimenting around it seems to me that successive JSON-RPC requests over a given WebSocket connection are processed one after the other/synchronously. I.e., if the first request takes five minutes, we'll have to wait at least five minutes to receive a response for the second request, even if that second request completes within seconds. This is markedly different from sending successive requests over plain HTTP because in that case they are processed asynchronously thanks to ASGI and friends. The difference might not be suprising as successive requests over the same WebSocket connection don't each have their own HTTP request.

Can you confirm that? Is my understanding of the situation correct? If so, is there a way within Tabella/OpenRPC to asynchronously run JSON-RPC requests within a given WebSocket connection?

Thanks for your help!

Edited by Damian Birchler