server_factory.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <string>
5 
6 #include <websocketpp/common/connection_hdl.hpp>
7 
8 #include "common.hpp"
9 #include "server_interface.hpp"
10 
11 namespace foxglove {
12 
14 public:
15  template <typename ConnectionHandle>
16  static std::unique_ptr<ServerInterface<ConnectionHandle>> createServer(
17  const std::string& name, const std::function<void(WebSocketLogLevel, char const*)>& logHandler,
18  const ServerOptions& options);
19 };
20 
21 } // namespace foxglove
static std::unique_ptr< ServerInterface< ConnectionHandle > > createServer(const std::string &name, const std::function< void(WebSocketLogLevel, char const *)> &logHandler, const ServerOptions &options)
WebSocketLogLevel
Definition: common.hpp:41


foxglove_bridge
Author(s): Foxglove
autogenerated on Mon Jul 3 2023 02:12:22