mikemarsian-ruby_bosh 0.13.3 → 0.13.4
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 +7 -0
- data/ruby_bosh.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7c2c742c0ed0a330070ebc811a80763d4686096
|
|
4
|
+
data.tar.gz: 4c8bf3acb260ada524c0b6a38363b6f898b04426
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e0e081379f81ce57b406cf168f7b23ff1489e480c3f69e5f3e0b3a50aa26f2b84ae1122e9691411d62d5600554e9c9af22a2c4c639fb3a02e02bf1b72a7f22e
|
|
7
|
+
data.tar.gz: 976fc0e158f5236662b6f1241e29779b0d03d4f34721e315649de2402d5444eff4c8acda4b348eb3c5c27c05d9d1d5c2fcd7a78b542279d6b1a7e744e6870550
|
data/README.md
CHANGED
|
@@ -9,6 +9,7 @@ Tested on Rails 4.2, Ruby 2.1.2 with eJabberd 16.04
|
|
|
9
9
|
## References
|
|
10
10
|
|
|
11
11
|
BOSH: http://xmpp.org/extensions/xep-0124.html
|
|
12
|
+
|
|
12
13
|
XMPP via BOSH: http://xmpp.org/extensions/xep-0206.html
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -39,6 +40,12 @@ var bosh_rid = '<%= @session_random_id %>';
|
|
|
39
40
|
``` js
|
|
40
41
|
// using Strophe:
|
|
41
42
|
connect.attach(bosh_jid, bosh_sid, bosh_rid, onConnectHandlerFunction);
|
|
43
|
+
|
|
44
|
+
// using ConverseJS:
|
|
45
|
+
converse.initialize({
|
|
46
|
+
jid: bosh_jid, sid: bosh_sid, rid: bosh_rid
|
|
47
|
+
// ... the rest of the initialization data
|
|
48
|
+
})
|
|
42
49
|
```
|
|
43
50
|
|
|
44
51
|
## Acknowledgements
|
data/ruby_bosh.gemspec
CHANGED