sinatra-websocketio 0.2.8 → 0.2.9
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/sinatra/websocketio/client.rb +9 -0
- data/lib/sinatra-websocketio/version.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: f1416c915c6dafcf271982799675187ac2fc5b4f
|
4
|
+
data.tar.gz: 513c07b5cb3e00046410096232b1b8b0467e7d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abffe18f4453b454193320a29682713457194289175852267d7f3981daebfe575ecd0abf250bd01f8f592c3dfc9cf048e4603e760c737d384bfafd04ded130da
|
7
|
+
data.tar.gz: 0d904cad61245d1879ef440a058784201421d437bf809b0f463538946fb7d75cd7b1f3229a016f50c06590e12420b473d2747fafa880391f40e706b25653c553
|
data/History.txt
CHANGED
@@ -26,6 +26,15 @@ module Sinatra
|
|
26
26
|
@session = session_id
|
27
27
|
emit :connect, @session
|
28
28
|
end
|
29
|
+
|
30
|
+
on :connect do
|
31
|
+
@thread_heartbeat = Thread.new do
|
32
|
+
while @connecting
|
33
|
+
push :__heartbeat, {:time => Time.now.to_i}
|
34
|
+
sleep 10
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
29
38
|
end
|
30
39
|
|
31
40
|
def connect
|
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.2.
|
4
|
+
version: 0.2.9
|
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-
|
11
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|