A
A
Anton Misyagin2017-04-27 00:22:59
Ruby on Rails
Anton Misyagin, 2017-04-27 00:22:59

How to send a message using faye to all users?

Before reloading the site software, I would like to send messages to all users who work with the site that the system will now be restarted. Now the file is configured, I can send arbitrary messages to certain users. And what about immediately to everyone who can hear, but not to the entire crowd of site users who are currently offline? Is it really possible to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Misyagin, 2017-05-15
@sunnmas

curl -X POST -d 'message={\"channel\": \"/reboot\", \"data\": {\"msg\": \"System reboot.\"}}' localhost:9294/ faye

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question