mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 23:03:53 +00:00
Applications can now be marked as installed, status bar can now show real data
This commit is contained in:
@@ -140,6 +140,15 @@ module W3DHubLauncher
|
||||
@client&.flush
|
||||
end
|
||||
|
||||
def message_requester(request_id:, status:, data:, error: nil)
|
||||
payload = { status: status, request_id: request_id, data: data, error: error }.to_json
|
||||
|
||||
@client&.write(payload)
|
||||
@client&.write(RESPONSE_SEPARATOR)
|
||||
@client&.flush
|
||||
end
|
||||
|
||||
|
||||
# Send request to server
|
||||
def request(query)
|
||||
# pp [:client_request, query]
|
||||
|
||||
Reference in New Issue
Block a user