isomorfeus-transport 1.0.0.delta9 → 1.0.0.delta10
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed706a7d3a6e989f81f3a9b6cf323f541e859386253c25ddde04a7cdb0730833
|
4
|
+
data.tar.gz: c11e5f191fd9370a8ca4b52b4e39d38667cfeffa9ddaa5eceee10d87c37c75d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 959a440dca5596a3b7cf12370e11e4503c7c9a0dab61b492d4e352b0132117def173145bade30a4f6c3c73a4b8e7a57c9a0cdebbdba5514beefc1c11249fb893
|
7
|
+
data.tar.gz: cfe2b33058e68434b4e1e2993ba1f5950e32b45810dc550ae00e24b6fd88ab705e314a066826bea0d9a915f8c560f355ccd4c43a21320be81a8319294df7cfbc
|
data/lib/isomorfeus/transport.rb
CHANGED
@@ -61,6 +61,7 @@ module Isomorfeus
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
register_request_in_progress(request, agent.id)
|
64
|
+
raise 'No socket!' unless @socket
|
64
65
|
@socket.send(`JSON.stringify(#{{request: { agent_ids: { agent.id => request }}}.to_n})`)
|
65
66
|
delay(Isomorfeus.on_ssr? ? 8000 : 20000) do
|
66
67
|
unless agent.promise.realized?
|
@@ -72,6 +73,7 @@ module Isomorfeus
|
|
72
73
|
end
|
73
74
|
|
74
75
|
def send_notification(channel_class, channel, message)
|
76
|
+
raise 'No socket!' unless @socket
|
75
77
|
@socket.send(`JSON.stringify(#{{notification: { class: channel_class.name, channel: channel, message: message}}.to_n})`)
|
76
78
|
true
|
77
79
|
end
|
@@ -83,6 +85,7 @@ module Isomorfeus
|
|
83
85
|
else
|
84
86
|
agent = Isomorfeus::Transport::RequestAgent.new(request)
|
85
87
|
register_request_in_progress(request, agent.id)
|
88
|
+
raise 'No socket!' unless @socket
|
86
89
|
@socket.send(`JSON.stringify(#{{subscribe: { agent_ids: { agent.id => request }}}.to_n})`)
|
87
90
|
end
|
88
91
|
result_promise = agent.promise.then do |response|
|
@@ -103,6 +106,7 @@ module Isomorfeus
|
|
103
106
|
else
|
104
107
|
agent = Isomorfeus::Transport::RequestAgent.new(request)
|
105
108
|
register_request_in_progress(request, agent.id)
|
109
|
+
raise 'No socket!' unless @socket
|
106
110
|
@socket.send(`JSON.stringify(#{{unsubscribe: { agent_ids: { agent.id => request }}}.to_n})`)
|
107
111
|
end
|
108
112
|
result_promise = agent.promise.then do |response|
|
@@ -9,8 +9,8 @@ module Isomorfeus
|
|
9
9
|
response = { response: { agent_ids: {}} }
|
10
10
|
|
11
11
|
if request.key?('request') && request['request'].key?('agent_ids')
|
12
|
-
request['request']['agent_ids'].
|
13
|
-
request['request']['agent_ids'][agent_id].
|
12
|
+
request['request']['agent_ids'].each_key do |agent_id|
|
13
|
+
request['request']['agent_ids'][agent_id].each_key do |handler_class_name|
|
14
14
|
begin
|
15
15
|
handler = Isomorfeus.cached_handler_class(handler_class_name) if Isomorfeus.valid_handler_class_name?(handler_class_name)
|
16
16
|
if handler
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isomorfeus-transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.delta10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 4.0.
|
75
|
+
version: 4.0.9
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 4.0.
|
82
|
+
version: 4.0.9
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: isomorfeus-react
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 16.
|
89
|
+
version: 16.9.0
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 16.
|
96
|
+
version: 16.9.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: websocket-driver
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|