sendAppMessage

Export, used to send message to custom app window.

Reference

---@param id string
---@param message any
function sendAppMessage(id, message) end

Usage example

client.lua
  exports.fd_laptop:sendAppMessage('testing_app', {
      action = "test",
      data = {
          foo = "bar"
      }
  })