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

Support Live Mode in the Pickup Protocol #145

Closed
FabioPinheiro opened this issue Oct 24, 2023 · 0 comments
Closed

Support Live Mode in the Pickup Protocol #145

FabioPinheiro opened this issue Oct 24, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@FabioPinheiro
Copy link
Contributor

Live Mode

Live Mode in the Message Pickup Protocol

Value brief

The main is to avoid polling to check if there are any new message
This will remove the overhead of individual requests for polling (status-request / delivery-request).

This will also greatly improve use cases of near-real-time communication with mediators.

Implementation notes

The Live Mode is defined on Message Pickup Protocol.
Only registered DID (in the mediator) can enable this mode. After the mediator replies with a mediate-grant

We need to keep internal metadata about the WebSockets:

  • Who is on the other side of the WebSockets? (Will be add in Support WebSockets Transport for DID Comm  #144)
    • Unknown - there is no previous message.
    • Set[DID] - one or more subjects based on the previous encrypted message sent.
  • Which DIDs are enabled Live Mode on this WebSocket?

The logic to start the action of pushing any new message will be added end of the ForwardMessageExecutor, the last step after storing. In this case, the MessageDispatcher needs to be overridden to only use a specific websocket(s), so it doesn't fall back Transport (EX: it may discover that the WebSocket is broken).

@FabioPinheiro FabioPinheiro added the enhancement New feature or request label Oct 24, 2023
@FabioPinheiro FabioPinheiro added this to the next official release milestone Oct 24, 2023
@FabioPinheiro FabioPinheiro self-assigned this Nov 21, 2023
FabioPinheiro added a commit that referenced this issue Nov 30, 2023
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16
mineme0110 pushed a commit that referenced this issue Apr 30, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16
mineme0110 pushed a commit that referenced this issue Apr 30, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16

Signed-off-by: Fabio <Pinheiro>
mineme0110 pushed a commit that referenced this issue May 1, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16

Signed-off-by: Fabio <Pinheiro>
mineme0110 pushed a commit that referenced this issue May 1, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16

Signed-off-by: Fabio Pinheiro <[email protected]>
mineme0110 pushed a commit that referenced this issue May 1, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16

Signed-off-by: Fabio Pinheiro <[email protected]>
Signed-off-by: mineme0110 <[email protected]>
mineme0110 pushed a commit that referenced this issue May 1, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16

Signed-off-by: Fabio Pinheiro <[email protected]>

Signed-off-by: Shailesh Patil <[email protected]>
mineme0110 pushed a commit that referenced this issue May 1, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16

Signed-off-by: Fabio Pinheiro <[email protected]>

Signed-off-by: Shailesh Patil <[email protected]>
mineme0110 pushed a commit that referenced this issue May 1, 2024
Pickup Protocol - Support for Live Mode #145
Update scala-did to 0.1.0-M16

Signed-off-by: Fabio Pinheiro <[email protected]>

Signed-off-by: Shailesh Patil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant