Skip to content

@mega-yfue/eufy-sdk / needsRealtimeInit

Function: needsRealtimeInit()

ts
function needsRealtimeInit(capabilities): boolean;

Whether any of these capabilities has realtime-init commands to send — checked before the caller pays for a CommandContext, which costs a device-param fetch.

Parameters

capabilities

ReadonlySet<Capability>

Returns

boolean

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.