johanbrandhorst / protobuf

GopherJS Bindings for ProtobufJS and gRPC-Web
MIT License
81 stars 16 forks source link

Idea: Hack in support for bidirectional streaming with websockets #16

Closed johanbrandhorst closed 6 years ago

johanbrandhorst commented 6 years ago

It should be possible to implement a gRPC like interface for writing and reading form a websocket as if it was a bidirectional streaming endpoint.

johanbrandhorst commented 6 years ago

I'm thinking something along the lines of https://github.com/tmc/grpc-websocket-proxy but adapted for binary streaming rather than newline delimited JSON messages.

johanbrandhorst commented 6 years ago

It kind of works 💯

joeblew99 commented 6 years ago

This is great..

johanbrandhorst commented 6 years ago

Made some more progress on this so far this weekend, hoping to have a first version ready tomorrow :)

joeblew99 commented 6 years ago

thanks for updating us. This is very useful stuff. Really looking forward giving it a whirl....

joeblew99 commented 6 years ago

I also mentioned this to myitcv, but there is a good CRDT lib now that is written in JS but i am looking to port to golang. The author also wants to port to golang. Its useful fro network partitions of course.

here is the link. https://github.com/y-js/yjs

johanbrandhorst commented 6 years ago

You can check out the progress in #18, I'm still tweaking it a little bit.

joeblew99 commented 6 years ago

This is insanely useful .. Will be tire kicking :)