1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00
falk-werner_webfuse/test/webfuse/test_util/ws_server.hpp

32 lines
576 B
C++
Raw Normal View History

2020-06-28 18:09:09 +00:00
#ifndef WF_TEST_UTIL_WS_SERVER2_HPP
#define WF_TEST_UTIL_WS_SERVER2_HPP
#include <string>
namespace webfuse_test
{
class InvokationHandler;
2020-06-29 18:21:55 +00:00
class WsServer
{
2020-06-29 18:21:55 +00:00
WsServer(WsServer const &) = delete;
WsServer & operator=(WsServer const & ) = delete;
public:
2020-06-29 18:21:55 +00:00
WsServer(
InvokationHandler& handler,
std::string const & protocol,
int port = 0,
bool enable_tls = false);
2020-06-29 18:21:55 +00:00
virtual ~WsServer();
std::string const & GetUrl() const;
2020-06-15 14:58:04 +00:00
void SendMessage(char const * message);
private:
class Private;
Private * d;
};
}
#endif