UNPKG

axis-discovery-ssdp

Version:

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

27 lines 816 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MSearch = void 0; /** * Class describing the wish to discover available services on a network. A * response to such search request is sent via unicast addressing to the * originating address and port number of the multicast request. */ class MSearch { /** * Converts the M-SEARCH request into a buffer. */ toBuffer() { return Buffer.from(MSearch.Payload); } } /** * The M-SEARCH payload for searching for Axis devices on the network. */ MSearch.Payload = 'M-SEARCH * HTTP/1.1\r\n' + 'Host:239.255.255.250:1900\r\n' + 'ST:urn:axis-com:service:BasicService:1\r\n' + 'Man:"ssdp:discover"\r\n' + 'MX:3\r\n' + '\r\n'; exports.MSearch = MSearch; //# sourceMappingURL=MSearch.js.map