You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### 4) Configure your pubsub server (Faye, Pusher, or STOMP)
83
95
84
-
#### Using [Faye](http://faye.jcoglan.com/) (selfhosted)
96
+
#### Using [Faye](http://faye.jcoglan.com/) (self-hosted)
85
97
86
98
Set your configuration in the generated `config/sync.yml` file, using the Faye adapter. Then run Faye alongside your app.
87
99
@@ -93,6 +105,34 @@ rackup sync.ru -E production
93
105
94
106
Set your configuration in the generated `config/sync.yml` file, using the Pusher adapter. No extra process/setup.
95
107
108
+
#### Using [STOMP](https://stomp.github.io) with [RabbitMQ](https://www.rabbitmq.com) (self-hosted)
109
+
110
+
> NOTE: Sync will probably play nicely with other STOMP servers besides RabbitMQ, but these have not been tested and are not guaranteed to be supported.
- Set your configuration in the generated `config/sync.yml` file, using the Stomp adapter. Ensure the default `amq.topic` exchange is available on your RabbitMQ instance (although experienced users may adjust the `websocket` and `destination` endpoints to suit their needs).
116
+
- The Stomp adapter needs access to vendor javascript assets for [`sockjs-client`](https://github.com/sockjs/sockjs-client) and [`stomp-websocket`](https://github.com/jmesnil/stomp-websocket). Either add them to your asset pipeline, and require them in your `application.js` manifest *before* the `//= require sync` declaration, or handle their inclusion in your layout as laid out in [Step #3](#3-add-the-pubsub-adapters-javascript-to-your-application-layout-appviewslayoutsapplicationhtmlerb).
117
+
118
+
An example configuration for RabbitMQ servers (local, out-of-box, and STOMP-enabled):
Because Sync interpolates your configuration settings into its compiled JavaScript, you may need to clear the Rails asset cache before your changes are reflected. You can do so by running `rake assets:clobber` from the command line.
0 commit comments