misc. fixes

This commit is contained in:
G. Gibson 2025-08-30 17:36:44 -07:00
parent 100a81369a
commit 056edf8d25

View file

@ -105,7 +105,12 @@ module GxG
if ::GxG::valud_uuid?(destination.to_s)
channel = self.fetch_channel(destination.to_s.to_sym)
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)
end
result = true
end
end