16#ifndef MIRAI_HTTP_WEBSOCKET_ADAPTOR_HPP_
17#define MIRAI_HTTP_WEBSOCKET_ADAPTOR_HPP_
30 std::string
HttpUrl =
"http://localhost:8080";
34 std::chrono::milliseconds
ReadTimeout = std::chrono::seconds(5);
48#ifdef IXWEBSOCKET_USE_ZLIB
std::unique_ptr< IAdaptor > MakeHttpWsAdaptor(HttpWsAdaptorConfig config)
std::string HttpUrl
Http adapter地址
void FromJsonFile(const std::string &path)
从JSON文件中读取配置
std::chrono::milliseconds ConnectionTimeout
连接超时时间
std::chrono::milliseconds WriteTimeout
写入超时时间
std::chrono::seconds HeartbeatInterval
心跳信息间隔
bool EnablePong
开启自动回复ping
std::chrono::milliseconds MinRetryInterval
最小重连时间间隔
std::chrono::seconds HandshakeTimeout
握手超时时间
std::string VerifyKey
验证密钥
std::chrono::milliseconds ReadTimeout
读取超时时间
std::chrono::milliseconds MaxRetryInterval
最大重连时间间隔
std::string WebsocketUrl
Websocket adapter地址
void FromTOMLFile(const std::string &path)
从TOML文件中读取配置