UNPKG

axis-discovery-ssdp

Version:

A Node.js SSDP (UPnP) client library written in TypeScript capable of searching for Axis Communication cameras.

18 lines (17 loc) 593 B
/// <reference types="node" /> import * as dgram from 'dgram'; import { SocketBase } from './SocketBase'; /** * Class representing a SSDP socket that support the HTTP method NOTIFY. */ export declare class NotifySocket extends SocketBase { private readonly addresses; /** * @param addresses The network addresses to listen for NOTIFY * advertisements on. */ constructor(addresses: string[]); protected onListening(): void; protected onMessage(messageBuffer: Buffer, remote: dgram.AddressInfo): void; protected bind(): Promise<void>; }