Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make server capabilities configurable #115

Closed
wants to merge 1 commit into from

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Dec 13, 2022

Public-Facing Changes
None

Description

  • Allows to pass in server capabilities as argument

@jhurliman
Copy link
Contributor

Does this mean the websocket_server code will need to look at this list of capabilities to decide what features to toggle on/off?

@jtbandes
Copy link
Member

Does this mean the websocket_server code will need to look at this list of capabilities to decide what features to toggle on/off?

+1, seems like it could make sense to have a server configuration where you can toggle client publishing on/off, and the server translates that to a capability? Or what were you envisioning?

@achim-k
Copy link
Collaborator Author

achim-k commented Dec 13, 2022

Does this mean the websocket_server code will need to look at this list of capabilities to decide what features to toggle on/off?

Yes, the server will have to check if an operation is allowed to be called based on its capabilities. Is this what you mean?

jhurliman pushed a commit that referenced this pull request Dec 14, 2022
**Public-Facing Changes**
- Publish binary time data when `use_sim_time` is `true`

**Description**
Depends on foxglove/ws-protocol#299

- When the `use_sim_time` parameter is set
  - The server advertises the `time` capability
- It subscribes to the `/clock` topic and broadcasts binary time
messages
- I have removed the code that detects presence of the `/clock` topic,
since now it has to be known at startup whether `use_sim_time` is true
or false

- Includes #115 (will rebase after it got merged)
@achim-k
Copy link
Collaborator Author

achim-k commented Dec 15, 2022

Closing as this got merged with #114

@achim-k achim-k closed this Dec 15, 2022
@achim-k achim-k deleted the achim/configurable_capabilities branch December 15, 2022 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants