sinatra-websocketio 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/js/websocketio.js +4 -3
- data/lib/sinatra-websocketio/version.rb +1 -1
- data/test/test_websocketio.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fa540eb66cc926e8a9cd4311d3efec37fd986e3
|
4
|
+
data.tar.gz: 251e986c12d0f05af5fb4ec5a9639b534190039c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f44d916b86b331e811ead4d28cef616a669e7ad6863b8df0a9e03b32703d5072a9c9ae0d64fe54924d91b7a84bdd96fbeb7d0955b9dbcac8ca09b7986c125e1
|
7
|
+
data.tar.gz: 90b5f162b7f974f57122a4c998528b5918734a40698d47cf84df3fc878bd2eaf7de240403da206be560715c340d7f76fe3c14e5535a07c733f7700850d4c9567
|
data/History.txt
CHANGED
data/lib/js/websocketio.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
var WebSocketIO = function(){
|
1
|
+
var WebSocketIO = function(url, opts){
|
2
2
|
new EventEmitter().apply(this);
|
3
|
-
|
4
|
-
this.
|
3
|
+
if(typeof opts === "undefined" || opts === null) opts = {};
|
4
|
+
this.url = url || "<%= websocketio_url %>";
|
5
|
+
this.session = opts.session || null;
|
5
6
|
this.websocket = null;
|
6
7
|
this.connecting = false;
|
7
8
|
var reconnect_timer_id = null;
|
data/test/test_websocketio.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-websocketio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|