#pragma once #include "../../plugin_interface.h" #include #include #include #include class websocket_plugin: public webserver_plugin_interface { public: websocket_plugin(); ~websocket_plugin(); std::string name() override; std::string generate_page( std::function& GetServerParam, std::function& GetRequestParam, // request including body (POST...) std::function& SetResponseHeader // to be added to result string ) override; bool has_own_authentication() override; }; extern "C" BOOST_SYMBOL_EXPORT websocket_plugin webserver_plugin; websocket_plugin webserver_plugin;