jstp 1.3.0 → 1.3.1
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.
- data/lib/jstp/engine.rb +7 -2
- data/lib/jstp/version.rb +1 -1
- metadata +1 -1
data/lib/jstp/engine.rb
CHANGED
@@ -18,8 +18,13 @@ module JSTP
|
|
18
18
|
# Is there a reverse gateway token there?
|
19
19
|
if @config.gateway.reverse && message.gateway == 'reverse'
|
20
20
|
if clients.has_key? message.token.first
|
21
|
-
|
22
|
-
|
21
|
+
begin
|
22
|
+
clients[message.token.first].send message.to.json
|
23
|
+
@config.logger.debug message.to.string
|
24
|
+
rescue Exception => exception
|
25
|
+
@config.logger.error exception.message
|
26
|
+
@config.logger.debug exception.backtrace.to_s
|
27
|
+
end
|
23
28
|
else
|
24
29
|
raise ClientNotFoundError, "Client #{message.token.first} is not registered in this server"
|
25
30
|
end
|
data/lib/jstp/version.rb
CHANGED