1 parent
d146f11f02
commit
5c036d91fb
72 files changed
+5875
-1243
No files matched your search
@@ -81,10 +81,16 @@ namespace Echoion::Core
|
||||
[[nodiscard]] std::vector<SubscriptionManager::Subscriber>
|
||||
getSubscribers() const;
|
||||
|
||||
// Presence events from the plugin. onClientConnected returns true
|
||||
// when a subscribed user came online and playback should
|
||||
// Presence events from the plugin. onClientConnected resolves the
|
||||
// client once and hands the uid back so callers don't repeat the
|
||||
// (plugin round-trip) lookup: subscribedUid is set when the
|
||||
// client is a subscriber; mayAutoStart when playback should
|
||||
// auto-start if tracks are queued.
|
||||
bool onClientConnected(uint64_t clientId);
|
||||
struct ClientConnectResult {
|
||||
std::optional<std::string> subscribedUid;
|
||||
bool mayAutoStart = false;
|
||||
};
|
||||
ClientConnectResult onClientConnected(uint64_t clientId);
|
||||
void onClientDisconnected(uint64_t clientId);
|
||||
|
||||
private:
|
||||
|
||||
Reference in new issue
Block a user