Skip to content

v1.2.0

Compare
Choose a tag to compare
@Undertone0809 Undertone0809 released this 11 Jan 17:00
· 19 commits to main since this release
795e68f

Upgrade

Please update the latest version.

pip install --upgrade broadcast-service

feat

  1. Add support multiple publications and multiple subscriptions. #7
broadcast_service.publish(["topic1", "topic2"], "message")
  1. Optimize the function of broadcast_service.subscribe() and broadcast_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'])

test and other

  1. Add more test cases #7
  2. Optimize docs #8