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

How to confirm an async message was sent? #1142

Open
sweihub opened this issue Sep 2, 2024 · 1 comment
Open

How to confirm an async message was sent? #1142

sweihub opened this issue Sep 2, 2024 · 1 comment

Comments

@sweihub
Copy link

sweihub commented Sep 2, 2024

Hi Dear Author

the websocketpp::send is an async interface that will sumit the send request to outgoing queue, How do I confirm when the message was sent, is there any on_send callback?

I have a scenario that the message was failed to send due to connection broken, I need to confirm a message was sent either successfully or failed.

Thanks

@Jacob-Burckhardt
Copy link

It succeeded if this method returns 0.

size_t get_buffered_amount() const;

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

2 participants