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

Provide japi handler that returns application name #39

Open
fraunhofer-iis-bot opened this issue Nov 3, 2021 · 0 comments
Open

Provide japi handler that returns application name #39

fraunhofer-iis-bot opened this issue Nov 3, 2021 · 0 comments

Comments

@fraunhofer-iis-bot
Copy link
Collaborator

In GitLab by @jannismain on Nov 3, 2021, 11:15

For a generic GUI client, that works with different libjapi-based applications, some identifier is needed (an application name? id? version?) to distinguish those applications as well as inform the user to which application they are currently connected.

This could be combined with #36, so that the command initially sent after connection was established to verify the connection status would return the application id (or name? or both?).

Flow of events would look like something like this

1. client connects to ws://<host>:<port>
        2. libjapi accepts incoming connection
3. client is connected to libjapi-based application (but which one?)
4. client sends request for identification (e.g. {"japi_request": "japi_id"})
        5. libjapi responds with application id (e.g. {"japi_response": "japi_id", "data": {"id": "libjapi-demo"}})
6. client is connected to libjapi-demo and has verified that everything (application, ws connection) is working properly

The data value of the japi_id request could also be extended to include an application id (id), an application name (name) and a version (version) to allow for more granular identification.

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