anycable / anycable-client

AnyCable / Action Cable JavaScript client for web, Node.js & React Native
MIT License
92 stars 15 forks source link

Make it possible to encode ArrayBuffer data. #10

Closed nashby closed 2 years ago

nashby commented 2 years ago

While I was working on this I discovered that protobuf data is received as ArrayBuffer which is not supported by protobuf.js (more info here)

palkan commented 2 years ago

We already have this conversion at the transport layer: https://github.com/anycable/anycable-client/blob/1ec7cc4db83b07656504a9b0e184731b6d0aa920/packages/core/websocket/index.js#L93-L95

How do you setup the client?

nashby commented 2 years ago

Oh I see. I'm using this demo https://github.com/anycable/anycable_rails_demo/pull/21 Given the link you posted it's strange that it doesn't work. I'll double check

palkan commented 2 years ago

I'm using this demo anycable/anycable_rails_demo#21

This PR uses an older version of anycable-client libs; try upgrading.