Pass SonarState into SonarWebSocketImpl
Summary: Allowing the connection code to update trigger diagnostic events Reviewed By: passy Differential Revision: D9117507 fbshipit-source-id: 24eeb1f80109f89137a7333e04039c3ae9dc3e71
This commit is contained in:
committed by
Facebook Github Bot
parent
3237b60ff1
commit
c7858c62f7
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <Sonar/SonarInitConfig.h>
|
||||
#include <Sonar/SonarWebSocket.h>
|
||||
#include <Sonar/SonarState.h>
|
||||
#include <folly/Executor.h>
|
||||
#include <folly/io/async/EventBase.h>
|
||||
#include <rsocket/RSocket.h>
|
||||
@@ -26,7 +27,7 @@ class SonarWebSocketImpl : public SonarWebSocket {
|
||||
friend Responder;
|
||||
|
||||
public:
|
||||
SonarWebSocketImpl(SonarInitConfig config);
|
||||
SonarWebSocketImpl(SonarInitConfig config, std::shared_ptr<SonarState> state);
|
||||
|
||||
~SonarWebSocketImpl();
|
||||
|
||||
@@ -46,6 +47,7 @@ class SonarWebSocketImpl : public SonarWebSocket {
|
||||
bool isOpen_ = false;
|
||||
Callbacks* callbacks_;
|
||||
DeviceData deviceData_;
|
||||
std::shared_ptr<SonarState> sonarState_;
|
||||
|
||||
folly::EventBase* sonarEventBase_;
|
||||
folly::EventBase* connectionEventBase_;
|
||||
|
||||
Reference in New Issue
Block a user