Skip to content

Make ZMQ interface for message protocol #171

@bruno-f-cruz

Description

@bruno-f-cruz
  • This should use the Aind.Behavior.Services generic protocol
  • Consider using rxpy
  • Should be something that creates a generic client with an api like:
from this_package import RegisteredProtocol
#RegisteredProtocol is a model with all registered messages for the interface
#It follows the base Message[TPayload] format provided from the Aind.Behavior.Services api
 
client = zmq_client_from_registered_protocol(RegisteredProtocol)
await client.send(RegisteredProtocol.StartMessage(args)) #this awaits the return for the StartMessage

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions