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

feat: initial protocol definition #1

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

rgallor
Copy link
Collaborator

@rgallor rgallor commented Sep 14, 2023

No description provided.

@rgallor rgallor force-pushed the protocol-definition branch from b08fc2e to 120599a Compare September 19, 2023 14:12
proto/http.proto Outdated Show resolved Hide resolved
proto/http.proto Outdated Show resolved Hide resolved
@rgallor rgallor force-pushed the protocol-definition branch from 120599a to 0d190dc Compare September 26, 2023 12:48
@rgallor rgallor requested review from harlem88 and rbino September 26, 2023 12:50
edgehog/device/forwarder/http.proto Outdated Show resolved Hide resolved
edgehog/device/forwarder/message.proto Outdated Show resolved Hide resolved
edgehog/device/forwarder/ws.proto Outdated Show resolved Hide resolved
edgehog/device/forwarder/http.proto Outdated Show resolved Hide resolved
edgehog/device/forwarder/http.proto Outdated Show resolved Hide resolved
edgehog/device/forwarder/http.proto Outdated Show resolved Hide resolved
edgehog/device/forwarder/ws.proto Outdated Show resolved Hide resolved
@rgallor rgallor force-pushed the protocol-definition branch from 0d190dc to 114081d Compare October 5, 2023 11:24
@rgallor rgallor requested review from harlem88 and rbino October 5, 2023 11:24
Copy link
Collaborator

@noaccOS noaccOS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also add an Internal message type, which should not be forwarded but instead parsed by us.

One such use for this message type would be when the server receives a response with an id it doesn't know, so it informs the device it should close the connection as well.
When either part receives a close frame for id j:

  • they close the connection if they know id j
  • otherwise, they ignore the request

proto/edgehog/device/forwarder/http.proto Show resolved Hide resolved
proto/edgehog/device/forwarder/message.proto Show resolved Hide resolved
@rgallor rgallor force-pushed the protocol-definition branch 2 times, most recently from eceab75 to 746ff56 Compare October 11, 2023 14:12
@rgallor
Copy link
Collaborator Author

rgallor commented Oct 11, 2023

Message Id restored into each protocol

Signed-off-by: rgallor <riccardo.gallo@secomind.com>
@rgallor rgallor force-pushed the protocol-definition branch from 746ff56 to d3a3fba Compare October 16, 2023 12:43
@harlem88 harlem88 merged commit c9167ac into edgehog-device-manager:main Nov 7, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

5 participants