The current infrastructure doesn't play well with ActionCable based websockets (which is the prevalent way to create websockets in Rails >=5), I would like to propose adding a translation layer between send and onmessage, optionally allowing the user to intercept the message and modifying anything necessary before a message is sent/after a message is received.
The current infrastructure doesn't play well with ActionCable based websockets (which is the prevalent way to create websockets in Rails >=5), I would like to propose adding a translation layer between send and onmessage, optionally allowing the user to intercept the message and modifying anything necessary before a message is sent/after a message is received.