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

[rest] server-sent events #2492

Open
OmegaRelay opened this issue Sep 16, 2024 · 0 comments
Open

[rest] server-sent events #2492

OmegaRelay opened this issue Sep 16, 2024 · 0 comments

Comments

@OmegaRelay
Copy link
Contributor

Server Sent Events in REST API server

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is.

At my company we currently use the http REST API to control the otbr instance with our own application.
The issue is we currently need to poll the /node/state endpoint to be updated of the connection status.

Describe the solution you'd like A clear and concise description of what you want to happen.

Server-sent event implementation defined in RFC-8895 for http clients to recieve push updates by starting a session with a GET request on a stream endpoint e.g /node/state/stream.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

We've considered using the D-BUS api but opted for the REST api for the following reasons:

  • We do not want our application running with the escalated privileges that is required to connect to the system daemon.
  • We prefer a http && json data implementation due to our current knowledge base
  • Application portablility is important to us

Additional context Add any other context or screenshots about the feature request here.

@OmegaRelay OmegaRelay changed the title REST: implement server-sent events REST: server-sent events Sep 16, 2024
@OmegaRelay OmegaRelay changed the title REST: server-sent events [rest] server-sent events Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant