v1.2.0
Upgrade
Please update the latest version.
pip install --upgrade broadcast-service
feat
- Add support multiple publications and multiple subscriptions. #7
broadcast_service.publish(["topic1", "topic2"], "message")
- Optimize the function of
broadcast_service.subscribe()
andbroadcast_service.publish()
#7
- The following two cases are equivalent.
@broadcast_service.on_listen(['topic1'])
def handle_all_msg():
# your code
@broadcast_service.on_listen('topic1')
def handle_all_msg():
# your code
broadcast_service.subscribe('topic1')
broadcast_service.subscribe(['topic1'])