Skip to content

Use PlaceOS/core-client for forwarding execute requests #165

Description

@github-actions

Use PlaceOS::Core::Client.
This will ensure that the interface between cores is consistent and versioned.

# TODO: Use `PlaceOS/core-client` for forwarding execute requests
core_uri.path = "/api/core/v1/command/#{remote_module_id}/execute"
response = HTTP::Client.post(
core_uri,
headers: HTTP::Headers{"X-Request-ID" => "int-#{request.reply}-#{remote_module_id}-#{Time.utc.to_unix_ms}"},
body: request.payload.not_nil!,
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions