bbc / RadioVisDemo

RadioDNS and RadioVIS Slideshow Protocol Demo
https://www.bbc.co.uk/rd/projects/radiovis
Apache License 2.0
27 stars 12 forks source link

Upgrade to stomp.py v8 #17

Closed njh closed 8 months ago

njh commented 8 months ago

https://pypi.org/project/stomp.py/

I tried using stomp.py v8.1.0 and got the following error:

TypeError: RadioVisClient.on_connected() takes 2 positional arguments but 3 were given

Removing the body parameter fix this:

    def on_connected(self, headers):
        """
        Once connected, subscribe to the message queues for TEXT and SHOW
        messages.
        """
        self.notify("CONNECTED", headers)

But then I got an error saying:

TypeError: 'Frame' object is not iterable