...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Send a WebSocket ping frame.
void ping( ping_data const& payload);
This function is used to synchronously send a ping frame on the stream. The call blocks until one of the following is true:
This function is implemented in terms of one or more calls to the next
layer's write_some
functions.
Name |
Description |
---|---|
|
The payload of the ping message, which may be empty. |
Type |
Thrown On |
---|---|
|
Thrown on failure. |