websocket客户端添加获取http连接的接口,方便设置http请求头

This commit is contained in:
ziyue 2021-07-22 15:48:10 +08:00
parent 0e27704859
commit 58d5026191

View File

@ -386,6 +386,10 @@ public:
_wsClient->startWsClient(ws_url,fTimeOutSec);
}
HttpClient &getHttpClient() {
return *_wsClient;
}
private:
typename HttpWsClient<ClientType,DataType>::Ptr _wsClient;
};