README.rdoc in faye_shards-0.1.0 vs README.rdoc in faye_shards-0.1.1
- old
+ new
@@ -62,10 +62,10 @@
So, in my example for production I have 2 Faye instances listening to ports 42000 and 42001 using HTTP + Stunnel configured to listen 32000 and 32001.
== Usage
URL for Faye's client-side JS (unless you store it somewhere on diff storage) is returned by this methos:
- FayeShards.shard(current_user.id).js_url
+ FayeShards.shard(current_user.id).js_url(request.ssl?)
Module <code>FayeShard::User::Faye</code> which can be included to your User model provides method <tt>faye_channel</tt> which returns unique channel id for user. If you do not want to include module to your model - you need to manage unique channels for users yourself.
On client side, subscription should look like:
client = new Faye.Client(<%= raw FayeShards.shard(current_user.id).url(request.ssl?).inspect %>);