Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INFORMATION] Websockets #109

Open
thib3113 opened this issue Jul 27, 2021 · 0 comments
Open

[INFORMATION] Websockets #109

thib3113 opened this issue Jul 27, 2021 · 0 comments

Comments

@thib3113
Copy link

thib3113 commented Jul 27, 2021

Hello,

on unifiOS lot of websockets events come from : wss://unifi/api/ws/system
with an object like :

interface IControllerEvent {
    type: string;
    [key: string]: unknown;
}

And it seems you just listen on : wss://unifi[/proxy/network]/wss/s/<siteName>/events .
But on unifi ( non unifiOS ), some events are send on the "super" site wss://unifi[/proxy/network]/wss/s/super/events ( + events on the selected site ) . They are like the other SiteEvents so ( from what I saw ) :

export interface ISiteEvent {
    meta: {
        rc: string;
        message: string;
        product_line?: string;
    };
    data: Array<unknown>;
}

Some events like "admin login" are send on the super site websockets .

It can be interessting to add a way to listen on them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant