Function setConnectionClosedHandler

Synopsis

#include <lib/inc/drogon/WebSocketClient.h>

virtual void setConnectionClosedHandler(const std::function< void(const WebSocketClientPtr &)> &callback)=0

Description

Set the connection closing handler. When the websocket connection is closed, the callback is called.

Set the connection closing handler. When the connection is established or closed, the

Parameters

callback - is called with a bool parameter.

callback - The function to call when the connection is closed.

Source

Line 63 in lib/inc/drogon/WebSocketClient.h.






Add Discussion as Guest

Log in