Custom WebSocket implementation with ActionCable on Electron/Node

Are you using an ActionCable client on Electron app? You want some extra compression with messagepack? Read on! NOTE: If you are looking for adding support for compression to your Rails backend, see the previous post. Chromium already handles compressed websocket frames with the permessage-deflate protocol. But if you have…

Custom WebSocket extension for Rails ActionCable

In the previous post, we saw how to support compression with permessage-deflate extension for Rails ActionCable connections. Now that we are there, let's go one step further and see how we can create a custom extension for WS frame compression. As an example, I'll demonstrate a way to compress JSON…