Send a message and immediately close connection

49 views
Skip to first unread message

dad

unread,
Aug 16, 2023, 8:00:48 AM8/16/23
to WebSocket++
Hi,

I need to send a message and then close the connection immediately after.
Can I just call send() and close() one after the other or do I need to wait before calling close()?
And if I need to wait, do I need to do some polling to be sure the message has sent out successfully?

Thanks.

Reply all
Reply to author
Forward
0 new messages