1 | /// <reference types="node" />
|
2 | import { AddressInfo } from 'net';
|
3 | import { SocketBase } from './SocketBase';
|
4 | /**
|
5 | * Class representing a SSDP socket that support the HTTP method NOTIFY.
|
6 | */
|
7 | export 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 | }
|