UNPKG

axis-discovery-ssdp

Version:

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

21 lines (20 loc) 669 B
/// <reference types="node" /> import * as dgram from 'dgram'; import { SocketBase } from './SocketBase'; /** * Class representing a SSDP socket that support the HTTP method M-SEARCH. */ export declare class MSearchSocket extends SocketBase { private address; /** * @param address The network address to listen for M-SEARCH responses on. */ constructor(address: string); /** * Starts a search by using HTTP method M-SEARCH. */ search(): Promise<void>; protected onListening(): void; protected onMessage(messageBuffer: Buffer, remote: dgram.AddressInfo): void; protected bind(): Promise<void>; }