foxglove / ws-protocol

Foxglove Studio WebSocket protocol specification and libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upon readvertising a topic which is displayed in Studio, the FoxgloveServerListener on_subscribe is not called again.

KerstinKeller opened this issue · comments

If a topic is unadvertised and then readvertised (can happen in live networks, when a task needs to be restarted), the server does not get a callback for subscribing to the data again from the python server library.

Steps to reproduce:

  • Start eCAL Publisher "person"
  • Start eCAL Foxglove Server
  • Open Studio & Subscribe to "person" message
  • Close Publisher
  • Restart Publisher
    -> Topic is marked in Studio as available, but no data is received, since the server library did not reissue a subscription request.

Output from Server

2021-12-13 13:55:33,439: [INFO] Adding topics ['person']
2021-12-13 13:55:48,907: [DEBUG] Got message: {'op': 'subscribe', 'subscriptions': [{'id': 0, 'channelId': 0}]}
2021-12-13 13:55:48,907: [DEBUG] Client ('127.0.0.1', 50663) subscribed to channel 0
2021-12-13 13:55:48,908: [INFO] Subscribing to 0
2021-12-13 13:57:09,502: [INFO] Removing topics ['person']
2021-12-13 13:57:09,513: [DEBUG] Got message: {'op': 'unsubscribe', 'subscriptionIds': [0]}
2021-12-13 13:57:25,731: [INFO] Adding topics ['person']
2021-12-13.13-56-22.mp4