jens-maus / node-unifi

NodeJS class for querying/controlling a UniFi-Controller (UDM-Pro, UDM-SE, UDM, UDR, UDW, CloudKey Gen1/Gen2) from Ubiquiti (www.ui.com)
MIT License
140 stars 50 forks source link

Critical Notifications Query Parameter in WebSocket URL #234

Open MiVents opened 6 months ago

MiVents commented 6 months ago

Hi,

Maybe its more a feature request then a bug. But there is an second "channel" in Unifi to listen for Critical notifications.

Is there a way to listen to both of this websockets, or a flag/opts to add the needed query param.

/proxy/network/wss/s/default/events?clients=v2&critical_notifications=true /proxy/network/wss/s/default/events?clients=v2

Screenshot 2024-02-23 at 10 21 14