drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
drogon::WebSocketController< T, AutoCreation > Class Template Reference

The reflection base class template for WebSocket controllers. More...

#include <drogon/WebSocketController.h>

Inheritance diagram for drogon::WebSocketController< T, AutoCreation >:
Collaboration diagram for drogon::WebSocketController< T, AutoCreation >:

Static Public Attributes

static const bool isAutoCreation = AutoCreation

Static Protected Member Functions

static void registerSelf__ (const std::string &path, const std::vector< internal::HttpConstraint > &constraints)
static void registerSelfRegex__ (const std::string &regExp, const std::vector< internal::HttpConstraint > &constraints)

Additional Inherited Members

Public Member Functions inherited from drogon::DrObject< T >
const std::string & className () const override
 Get the class name.
bool isClass (const std::string &class_name) const override
 Return true if the class name is 'class_name'.
Public Member Functions inherited from drogon::WebSocketControllerBase
virtual void handleNewMessage (const WebSocketConnectionPtr &, std::string &&, const WebSocketMessageType &)=0
virtual void handleNewConnection (const HttpRequestPtr &, const WebSocketConnectionPtr &)=0
virtual void handleConnectionClosed (const WebSocketConnectionPtr &)=0
Static Public Member Functions inherited from drogon::DrObject< T >
static const std::string & classTypeName ()

Detailed Description

template<typename T, bool AutoCreation = true>
class drogon::WebSocketController< T, AutoCreation >

The reflection base class template for WebSocket controllers.

Template Parameters
Tthe type of the implementation class
AutoCreationThe flag for automatically creating, user can set this flag to false for classes that have nondefault constructors.

The documentation for this class was generated from the following file: