pusherpusher-js

How does one send blobs or arraybuffers through pusher?


The Pusher documentation states that it does not support binary websocket frames. Why is this the case and how would one send non-text data, e.g. blobs, through Pusher?


Solution

  • You need to find a way to serialize your data in order to send it over. For binary data transmitted over text formats like JSON/XML, the most common way is to use base64.