centrifuge 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -2
- data/lib/centrifuge/version.rb +1 -1
- data/lib/centrifuge.rb +5 -0
- data/vendor/assets/javascripts/centrifuge.js +1256 -0
- data/vendor/assets/javascripts/sockjs.js +2379 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d392ff9d6bbdf4ea0e020a7192384329548d82eb
|
4
|
+
data.tar.gz: c7639d29aa665e3f9d201ff76cbd5aa50b28d143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9174de5d51e4230bac9ed3a821c027ee4bd24f415e4c3aee51955f399f2d88d84f5dc0e981953bc25dcea5894c6d7ea90e433b46c0a33024f68d4f1100b023b0
|
7
|
+
data.tar.gz: 79bfb6afaef659e1986ba5002473bb67f77afd2dedb3a83c1ccf7344e04fd0e3871368548ce5ec4b79c7bef60134d830671bef5d688cf05f73a9c406d8f154bf
|
data/README.md
CHANGED
@@ -76,11 +76,22 @@ Gets message history of the channel:
|
|
76
76
|
|
77
77
|
Generates token for JS client:
|
78
78
|
|
79
|
-
|
79
|
+
client.token_for('testuser', '123123')
|
80
80
|
|
81
81
|
Where `123123` is UNIX timestamp. You can also add user info as valid json string as third parameter:
|
82
82
|
|
83
|
-
|
83
|
+
client.token_for('testuser', '123123', "{}")
|
84
|
+
|
85
|
+
## Rails assets
|
86
|
+
|
87
|
+
To use Centrifuge js client just add this line to your application.js manifest:
|
88
|
+
|
89
|
+
//= require centrifuge
|
90
|
+
|
91
|
+
If you want to use sockjs require it before centrifuge:
|
92
|
+
|
93
|
+
//= require sockjs
|
94
|
+
//= require centrifuge
|
84
95
|
|
85
96
|
### Other API
|
86
97
|
|
data/lib/centrifuge/version.rb
CHANGED
data/lib/centrifuge.rb
CHANGED