MCPcopy Create free account
hub / github.com/boostorg/beast / on_close

Method on_close

example/websocket/client/async/websocket_client_async.cpp:182–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180 }
181
182 void
183 on_close(beast::error_code ec)
184 {
185 if(ec)
186 return fail(ec, "close");
187
188 // If we get here then the connection is closed gracefully
189
190 // The make_printable() function helps print a ConstBufferSequence
191 std::cout << beast::make_printable(buffer_.data()) << std::endl;
192 }
193};
194
195//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

failFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected