Channels Manager
The current implementation of the HSTP.d Channels Manager provides a websocket publish/subscribe interface that allows HSTP clients and Activity Handlers to publish and subscribe to streams of arbitrary byte.
It is important to note that the current implementation is not satisfying the Channels specifications (6.6.6. Channels) in the IEEE P2874 system specification. Rather, it is a first step to allows applications to use the interface while the sdk development is ongoing.
Channels Manager interface
The abstract interface, hstp_core.hstpd.components.managers.channels_manager.ChannelsManager is defined for generic data types (raw bytes of no specific encoding)
create_channel_descriptor - adds a new channel, and returns a channel descriptor that can be used to publish and subscribe
publish - publish a message to a channel
subscribe - subscribe to a channel, providing a consumer that will receive incoming messages
ChannelsManagerBytes
The current implementation, hstp_core.hstpd.components.managers.channels_manager.ChannelsManagerBytes uses bytes for the binding channel data. When using the hstp_core.hstp_client.HSTPClientHTTPSWebsocket client to publish and subscribe to channels managed by the HSTP.d node, Websockets are used to send and receive the data.
Last updated