Classes | Functions
Balau::Network::Http::WsWebApps Namespace Reference

A set of WebSocket web apps provided by the Balau library. More...

Classes

class  EchoingWsWebApp
 WebSocket web application that echos messages back to the client. More...
 
class  NullWsWebApp
 A WebSocket web application that silently consumes. More...
 
class  RoutingWsWebApp
 A WebSocket web application handler that routes to other handlers. More...
 

Functions

template<typename HandlerT , typename ... ParamT>
RoutingWsWebApp::Value routingNode (const std::string &key, ParamT &&... param)
 Convenience function to make a routing node from a handler type, a string key, and the handler constructor arguments. More...
 
template<typename HandlerT >
RoutingWsWebApp::Value routingNode (const std::string &key)
 Convenience function to make routing nodes from a handler type, a string key, and no handler constructor arguments. More...
 

Detailed Description

A set of WebSocket web apps provided by the Balau library.

Function Documentation

◆ routingNode() [1/2]

RoutingWsWebApp::Value Balau::Network::Http::WsWebApps::routingNode ( const std::string &  key,
ParamT &&...  param 
)
inline

Convenience function to make a routing node from a handler type, a string key, and the handler constructor arguments.

The same handler will be used for GET, HEAD, and POST requests.

◆ routingNode() [2/2]

RoutingWsWebApp::Value routingNode ( const std::string &  key)
inline

Convenience function to make routing nodes from a handler type, a string key, and no handler constructor arguments.

Convenience function to make null routing nodes.

The same handler will be used for GET, HEAD, and POST requests.