You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
falk-werner_webfuse/test/webfuse/test_util/ws_server.hpp

34 lines
637 B

#ifndef WF_TEST_UTIL_WS_SERVER2_HPP
#define WF_TEST_UTIL_WS_SERVER2_HPP
#include <jansson.h>
#include <string>
namespace webfuse_test
{
class InvokationHandler;
class WsServer
{
WsServer(WsServer const &) = delete;
WsServer & operator=(WsServer const & ) = delete;
public:
WsServer(
InvokationHandler& handler,
std::string const & protocol,
int port = 0,
bool enable_tls = false);
virtual ~WsServer();
std::string const & GetUrl() const;
4 years ago
void SendMessage(char const * message);
void SendMessage(json_t * message);
private:
class Private;
Private * d;
};
}
#endif