add example websocket C++ server snake which supports basic cobra ops (publish and subscribe without stream sql

This commit is contained in:
Benjamin Sergeant
2019-04-22 17:24:01 -07:00
parent 323684efff
commit 0caf875399
19 changed files with 846 additions and 20 deletions

View File

@ -28,13 +28,16 @@ namespace ix
std::string& response);
bool publish(const std::string& channel,
const std::string& message);
const std::string& message,
std::string& errMsg);
bool subscribe(const std::string& channel,
const OnRedisSubscribeResponseCallback& responseCallback,
const OnRedisSubscribeCallback& callback);
private:
std::string writeString(const std::string& str);
std::shared_ptr<Socket> _socket;
};
}