Advertise and ClientAdvertise messages are not symmetrical. #728
Replies: 6 comments
-
Internal tracking ticket: FG-3601 |
Beta Was this translation helpful? Give feedback.
-
Converted to a discussion because currently as designed, the server is expected to understand the |
Beta Was this translation helpful? Give feedback.
-
In general, a publisher should always know (and for that matter communicate) the schema of the data that it publishes. Thinking of ws-procol as a library for Pub / Sub over Websocket, in my opinion If Studio can / will fill that information, that's a totally different story. In eCAL we've designed our pub/sub in such a way that there is a binary level pub/sub which communicates metadata, and binary data (just like ws-protocol does). Then there are convenience functions / objects for users that are e.g. a And as you said, extension will be able to provide the schema info. |
Beta Was this translation helpful? Give feedback.
-
What we can easily do is to add two optional fields One use case this would facilitate is a "relay-server" which re-advertises client channels as server channels and simply forwards incoming messages (example: use Foxglove Studio to visualize input of multiple Foxglove iOS apps running in client mode). This is similar to what foxglove-bridge does by advertising ROS topics, which are also then advertised as server channels. Edit: foxglove/ws-protocol#463 |
Beta Was this translation helpful? Give feedback.
-
This has been implemented in foxglove/ws-protocol#463 and published to
|
Beta Was this translation helpful? Give feedback.
-
Closing this out as implemented. |
Beta Was this translation helpful? Give feedback.
-
Description
Advertise on the server side has the following fields according to the spec, however ClientAdvertise is "missing" the schema field. Is this by intention? If you have the possibility to publish protobuf data, too, this field would certainly be necessary.
Advertise: https://github.com/foxglove/ws-protocol/blob/main/docs/spec.md#advertise
ClientAdvertise: https://github.com/foxglove/ws-protocol/blob/main/docs/spec.md#client-advertise
Beta Was this translation helpful? Give feedback.
All reactions