Interface EndpointManager

EndpointManager provides publicly accessible URLs that can be used to contact your Scrypted Plugin.

Hierarchy

  • EndpointManager

Methods

  • Get an URL pathname for a device that can be accessed with authentication. This is a relative path that can be used in browser sessions.

    Deprecated

    Parameters

    • Optional nativeId: string

    Returns Promise<string>

  • Get an URL that can only be accessed on your local network by anyone with the link. HTTP requests and responses are without any encryption. Plugin implementation is responsible for authentication.

    Deprecated

    Parameters

    • Optional nativeId: string

    Returns Promise<string>

  • Get an URL that can only be accessed on your local network by anyone with the link. HTTP requests and responses are over SSL with a self signed certificate. Plugin implementation is responsible for authentication.

    Deprecated

    Parameters

    • Optional nativeId: string

    Returns Promise<string>

  • Get an URL that can be used to send a push message to the client. This differs from a cloud endpoint, in that, the Plugin does not send a response back. Plugin implementation is responsible for authentication.

    Deprecated

    Parameters

    • Optional nativeId: string

    Returns Promise<string>

  • Get an URL that can be externally accessed by anyone with the link. Plugin implementation is responsible for authentication.

    Deprecated

    Parameters

    • Optional nativeId: string

    Returns Promise<string>

  • Get an URL pathname for a device that can be accessed without authentication. This is a relative path that can be used in browser sessions.

    Parameters

    • Optional nativeId: string
    • Optional options: {
          public?: boolean;
      }
      • Optional public?: boolean

    Returns Promise<string>

  • Get an URL that can only be accessed on your local network by anyone with the link.

    Parameters

    • Optional nativeId: string
    • Optional options: {
          public?: boolean;
          insecure?: boolean;
      }
      • Optional public?: boolean

        A public endpoint that does not require authentication with the local Scrypted server.

      • Optional insecure?: boolean

        An insecure endpoint served by http, not https.

    Returns Promise<string>

  • Get an URL that can be externally accessed by anyone with the link. Plugin implementation is responsible for authentication.

    Deprecated

    Parameters

    • Optional nativeId: string
    • Optional options: {
          public?: boolean;
      }
      • Optional public?: boolean

        A public endpoint that does not require authentication with the local Scrypted server.

    Returns Promise<string>

  • Get an URL that can be used to send a push message to the client. This differs from a cloud endpoint, in that, the Plugin does not send a response back.

    Parameters

    • Optional nativeId: string

    Returns Promise<string>

  • Set the recommended local addresses used by Scrypted plugins that listen for incoming connections.

    Parameters

    • addresses: string[]

    Returns Promise<void>

  • Get the recommended local addresess used by Scrypted plugins that listen for incoming connections.

    Returns Promise<string[]>

  • Set the allowed origins for an endpoint for cross origin requests. I.e. 'https://example.com' would allow cross origin requests from that origin. For security, this setting will not persist between plugin reloads and must be called per desired origin after plugin startup.

    Returns Promise<void>

Generated using TypeDoc