Grpc flatbuffers and web

248 views
Skip to first unread message

Ged Wed

unread,
Oct 15, 2018, 3:54:09 AM10/15/18
to FlatBuffers
What's the current state of play with using grpc flatbuffers in the web browser ?

I know that in the web browser the current limitation is related to Framing support.

I am looking for how easy it might be to use in use cases where you need to push updates to the browser on a flatbuffer type. For example chat.
For my specific use case I am wanting to use it for gaming and so have huge model meshes and gaming state I need to push out to many browsers at once.

Also the big elephant in the room of course is if you can use it in a WASM environment in the browser and then pump out changes to the DOM and webgl context from the WASM context.

Thanks for this amazing technology btw !!

Wouter van Oortmerssen

unread,
Oct 15, 2018, 2:34:15 PM10/15/18
to Ged Wed, FlatBuffers
I'm not familiar with how gRPC in general would work on the web, there is https://github.com/grpc/grpc-web, but we don't have a FlatBuffers specific JS interface for gRPC yet.

Using WASM sounds like a more future-proof path, but I don't think there is a supported gRPC for WASM yet.

For now, if these are large game assets, how about using another transport (HTTP octet-stream) to pull in the FlatBuffer data, then copy it into a WASM linear memory for processing?

--
You received this message because you are subscribed to the Google Groups "FlatBuffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flatbuffers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages