UNPKG

573 BTypeScriptView Raw
1/// <reference types="node" />
2import { AddressInfo } from 'net';
3import { SocketBase } from './SocketBase';
4/**
5 * Class representing a SSDP socket that support the HTTP method NOTIFY.
6 */
7export declare class NotifySocket extends SocketBase {
8 private readonly addresses;
9 /**
10 * @param addresses The network addresses to listen for NOTIFY
11 * advertisements on.
12 */
13 constructor(addresses: string[]);
14 protected onListening(): void;
15 protected onMessage(messageBuffer: Buffer, remote: AddressInfo): void;
16 protected bind(): Promise<void>;
17}