Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Publish through JS #99

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

caffeineshock
Copy link

I doubt that this will be merged anytime soon into master, but this code allows clients to publish messages directly. Before, you always had to call some rails code in order to publish messages in non-meta channels.

However, the contents published this way are not sanitized in any way or form. This should either be done by the receiving client or the faye server itself.

To control which channels a client may publish to you can specify the option publish (default: false) when calling subscribe_to:

<%= subscribe_to "foo", publish: true %>

@simonoff
Copy link

this gem is not supported. Please look on https://github.com/dotpromo/danthes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants