50 const boost::property_tree::ptree &cfg,
CoreUtilsPtr utils);
54 virtual void run()
override;
uint16_t port_
Port to bind the websocket endpoint.
virtual void run() override
This is the main loop of the module.
This is the header file for a generated source file, GitSHA1.cpp.
std::unique_ptr< WSServer > wssrv_
Our websocket server object.
Base class for module implementation.
~WebSockAPIModule()=default
std::string interface_
IP address of the interface to listen on.
WebSockAPIModule(zmqpp::context &ctx, zmqpp::socket *pipe, const boost::property_tree::ptree &cfg, CoreUtilsPtr utils)
std::shared_ptr< CoreUtils > CoreUtilsPtr
A module that provide a websocket interface to Leosac.
CoreUtilsPtr core_utils()
This module explicitly expose CoreUtils to other object in the module.