janus_gateway 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fce95cd96c95938e04f2bfedfbbcd48468e094b9
|
4
|
+
data.tar.gz: f0c7dae8907a4dfddf7a98eecc9528056fd19971
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e29e73777a93e37f5d6deacc75c94757a433b37cfa9046d379fa3fbf441f574893e761c58f9a9d5753ba517df084edef1ecbd9a40e59b3e5f2f18dd8c53d8a1e
|
7
|
+
data.tar.gz: fd2a44196ef4f92892360a88cfcd1625dba18209330ea5d3d78c401fc392ff4ab4a66f5c00f02e1470af88bb36f6b59f6770c21e7d9d6d5cd5cbe2a09530dca2
|
@@ -8,7 +8,6 @@ module JanusGateway::Plugin
|
|
8
8
|
# @param [Array] streams
|
9
9
|
def initialize(client, plugin, id, streams = nil)
|
10
10
|
@plugin = plugin
|
11
|
-
@id = id
|
12
11
|
@data = nil
|
13
12
|
|
14
13
|
@streams = streams || [
|
@@ -22,7 +21,7 @@ module JanusGateway::Plugin
|
|
22
21
|
}
|
23
22
|
]
|
24
23
|
|
25
|
-
super(client)
|
24
|
+
super(client, id)
|
26
25
|
end
|
27
26
|
|
28
27
|
# @return [Concurrent::Promise]
|
@@ -106,11 +105,11 @@ module JanusGateway::Plugin
|
|
106
105
|
destroy
|
107
106
|
end
|
108
107
|
|
109
|
-
self.emit :create
|
108
|
+
self.emit :create
|
110
109
|
end
|
111
110
|
|
112
111
|
def _on_destroyed
|
113
|
-
self.emit :destroy
|
112
|
+
self.emit :destroy
|
114
113
|
end
|
115
114
|
end
|
116
115
|
end
|
@@ -36,7 +36,7 @@ module JanusGateway
|
|
36
36
|
client.send_transaction(
|
37
37
|
{
|
38
38
|
:janus => 'destroy',
|
39
|
-
:session_id =>
|
39
|
+
:session_id => id
|
40
40
|
}
|
41
41
|
).then do |*args|
|
42
42
|
_on_destroyed
|
@@ -60,7 +60,7 @@ module JanusGateway
|
|
60
60
|
client.send_transaction(
|
61
61
|
{
|
62
62
|
:janus => 'keepalive',
|
63
|
-
:session_id =>
|
63
|
+
:session_id => id
|
64
64
|
}
|
65
65
|
).then do |*args|
|
66
66
|
sleep_time = 30
|
@@ -78,7 +78,7 @@ module JanusGateway
|
|
78
78
|
@id = data['data']['id']
|
79
79
|
|
80
80
|
client.on :message do |data|
|
81
|
-
if data['janus'] == 'timeout' and data['session_id'] ==
|
81
|
+
if data['janus'] == 'timeout' and data['session_id'] == id
|
82
82
|
send(:_on_destroyed)
|
83
83
|
end
|
84
84
|
end
|