Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Websocket_Connector.h
Go to the documentation of this file.
1#ifndef joedb_Websocket_Connector_declared
2#define joedb_Websocket_Connector_declared
3
6
7namespace joedb
8{
9 /// @ingroup concurrency
11 {
12 private:
13 const std::string host;
14 const std::string port;
15 const std::string path;
16
17 public:
19 (
20 std::string host,
21 std::string port,
22 std::string path
23 ):
24 host(host),
25 port(port),
26 path(path)
27 {
28 }
29
30 std::unique_ptr<Channel> new_channel() const override
31 {
32 return std::make_unique<Websocket_Channel>(host, port, path);
33 }
34 };
35}
36
37#endif
Used by Robust_Connection to reconnect after an error.
Definition Connector.h:15
std::unique_ptr< Channel > new_channel() const override
Websocket_Connector(std::string host, std::string port, std::string path)