OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
messaging.publisher_if.PublisherIf Class Reference

Publish OpenRoadCode messages without exposing transport details. More...

Inheritance diagram for messaging.publisher_if.PublisherIf:
messaging.zeromq.publisher.ZeroMqPublisher

Public Member Functions

None publish (self, str topic, Mapping[str, Any] payload)
 Publish one encoded payload on a topic.
None close (self)
 Release publisher resources when the implementation owns any.

Detailed Description

Publish OpenRoadCode messages without exposing transport details.

Member Function Documentation

◆ publish()

None messaging.publisher_if.PublisherIf.publish ( self,
str topic,
Mapping[str, Any] payload )

Publish one encoded payload on a topic.

Parameters
topicPublic topic name used to route the message.
payloadJSON-compatible encoded contract payload.

Reimplemented in messaging.zeromq.publisher.ZeroMqPublisher.


The documentation for this class was generated from the following file:
  • messaging/publisher_if.py