What's the best current solution (if any) for usin...
# webassembly
d
What's the best current solution (if any) for using gRPC and/or WebSockets from Kotlin/WASM in the Browser, at the moment? Ktor has a WASM release but it doesn't support WebSockets yet (though in #ktor it's mentioned they will be working on it).
j
I didn't know ktor support gRPC. Does it codegen all services and so on?
d
I know Ktor won't implement gRPC but I'm considering writing my own sort of RPC-like protocol on top of plain Websockets to suit my App if there's no turn-key alternative. Wire is a promising looking gRPC library for Kotlin but I can't find any references to WASM support in their tracker.
j
Yeah, to be honest, the official gRPC library should become Multiplatform. There is an issue in their repo but... I hope @James Ward push for it as Android libraries are being pushed to become Multiplatform nowadays.
j
I'm pushing 🙂 I think it'll eventually happen since Google needs KMP Protos. But probably not soon enough for your needs. I've heard good things about Wire. So maybe getting them to add Wasm support could happen sooner.
thank you color 2
d
Created a YouTrack Issue for Ktor/WASM WebSocket support - none existed before.