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

Expose QueueEmpty and Contacts #293

Merged
merged 6 commits into from
Jan 2, 2025
Merged

Expose QueueEmpty and Contacts #293

merged 6 commits into from
Jan 2, 2025

Conversation

gferon
Copy link
Collaborator

@gferon gferon commented Nov 10, 2024

Modify the API to remove ReceivingMode in favor of being able to keep the receiving messages loop running (= websocket open) while still handling the different phases in client code. There's an example in fn send in presage-cli on how to wait for all initial messages (until QueueEmpty arrives) and then start sending messages.

This will help with implementing boxdot/gurk-rs#196

Closes #231

Copy link
Contributor

@Schmiddiii Schmiddiii left a comment

Choose a reason for hiding this comment

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

Did not yet implement it into Flare, just took a look at the code.

presage-cli/src/main.rs Outdated Show resolved Hide resolved
boxdot
boxdot previously requested changes Nov 14, 2024
presage/src/manager/mod.rs Outdated Show resolved Hide resolved
presage/src/model/messages.rs Outdated Show resolved Hide resolved
presage/src/model/messages.rs Outdated Show resolved Hide resolved
@gferon gferon dismissed boxdot’s stale review January 2, 2025 23:15

fixed all comments

@gferon gferon force-pushed the expose-queue-empty branch from 0c9f371 to 1b14c6e Compare January 2, 2025 23:24
@gferon gferon enabled auto-merge (squash) January 2, 2025 23:25
@gferon gferon merged commit abf00d1 into main Jan 2, 2025
3 checks passed
@gferon gferon deleted the expose-queue-empty branch January 2, 2025 23:26
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.

Propagate QueueEmpty signal
3 participants