I see from the docs that kRPC uses websockets, and...
# kotlinx-rpc
r
I see from the docs that kRPC uses websockets, and it doesn't seem to have an http fallback. Is there any need for / has anyone considered an http fallback transport that uses SSE or long-polling for the
KrpcTransport.receive
?
a
Hi! Would be good indeed to have one. I may be added later
r
Thanks @Alexander Sysoev. I created this issue to track the feature request: https://github.com/Kotlin/kotlinx-rpc/issues/290.
thank you color 1
s
I'm also very interested in this, not so much as a fallback but as an alternative to begin with. websockets are sometimes difficult to deal with. grpc is also based on http/2 for example
r
Kotlinx-rpc has experimental support for gRPC as a protocol, so if you want to use gRPC over HTTP/2 you'd just use that protocol instead. My request is specifically for kRPC, which is kotlinx-rpc's own protocol.
s
yes, as I've just said, I'd like to see krpc over http/2 in a similar fashion