I'm attempting to setup MessageBus gem ( https://github.com/SamSaffron/message_bus ) on a fresh install of Rails 5.04
So far I've
- run
bundle
, - added
message-bus.js
and included it in theapplication.js
- created an initializer
- ran a rails scaffold generator
- started a client in
request.js
that is subscribed to/TestChannel
When I go and test the app, it looks like the client is polling (based on the server logs), however, when I try and send a message in rails console, the client does not receive it. Yet per the server logs, it appears to attempt to send it.
Example:
Rails Console:
MessageBus.publish "/TestChannel", "hello"
in rails console
Server Log:
=> Delivering messages [] to client e4ac8e6cfeb340a8a389468bf0536053 for user (chunked)
Browser: Nothing triggered.
Any help getting the client to trigger would be appreciated.