mirror of
https://github.com/mistergibson/gxg-framework.git
synced 2026-08-15 03:46:00 -07:00
misc. fixes
This commit is contained in:
parent
100a81369a
commit
056edf8d25
1 changed files with 6 additions and 1 deletions
|
|
@ -105,7 +105,12 @@ module GxG
|
||||||
if ::GxG::valud_uuid?(destination.to_s)
|
if ::GxG::valud_uuid?(destination.to_s)
|
||||||
channel = self.fetch_channel(destination.to_s.to_sym)
|
channel = self.fetch_channel(destination.to_s.to_sym)
|
||||||
if channel
|
if channel
|
||||||
|
if channel.socket
|
||||||
|
# Send format: channel.socket.send({ :payload => the_message.export.to_s.encrypt(channel.secret).encode64 }.to_json.encode64, :text)
|
||||||
|
channel.socket.send({ :payload => the_message.export.to_s.encrypt(channel.secret).encode64 }.to_json.encode64, :text)
|
||||||
|
else
|
||||||
channel.write(the_message)
|
channel.write(the_message)
|
||||||
|
end
|
||||||
result = true
|
result = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue