Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions include/redox/subscriber.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ class Subscriber {
return rdx_.connectUnix(path, connection_callback);
}

/**
* Send auth message to server.
* Call this before any subscribe happens
*/
bool auth(const std::string &password) {
return rdx_.commandSync({"AUTH", password});
}

/**
* Same as .stop() on a Redox instance.
*/
Expand Down