diff --git a/include/boost/beast/websocket/stream.hpp b/include/boost/beast/websocket/stream.hpp index 2f7fd6f5..0595851f 100644 --- a/include/boost/beast/websocket/stream.hpp +++ b/include/boost/beast/websocket/stream.hpp @@ -2683,6 +2683,10 @@ public: the @ref binary (or @ref text) option. The actual payload sent may be transformed as per the WebSocket protocol settings. + This function always writes a complete WebSocket frame (not WebSocket + message) upon successful completion, so it is well defined to perform + ping, pong, and close operations after this operation completes. + @param fin `true` if this is the last part of the message. @param buffers The buffers containing the message part to send. @@ -2720,6 +2724,10 @@ public: the @ref binary (or @ref text) option. The actual payload sent may be transformed as per the WebSocket protocol settings. + This function always writes a complete WebSocket frame (not WebSocket + message) upon successful completion, so it is well defined to perform + ping, pong, and close operations in parallel to this operation. + @param fin `true` if this is the last part of the message. @param buffers The buffers containing the message part to send.