diff --git a/.circleci/config.yml b/.circleci/config.yml index ca86fc9..6454186 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 defaults: &defaults working_directory: ~/ardean/spread-the-word docker: - - image: circleci/node:10.15.1 + - image: circleci/node:14 jobs: build: diff --git a/LICENSE.md b/LICENSE.md index 281d3bc..9d74aa8 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 ardean +Copyright (c) 2021 ardean Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dist/Constants.js b/dist/Constants.js index cc701d6..dd5fe9a 100644 --- a/dist/Constants.js +++ b/dist/Constants.js @@ -1,5 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.REQUERY_FACTOR = exports.REQUERY_MAX_MS = exports.REANNOUNCE_FACTOR = exports.REANNOUNCE_MAX_MS = exports.WILDCARD = exports.TOP_LEVEL_DOMAIN = void 0; exports.TOP_LEVEL_DOMAIN = "local"; exports.WILDCARD = "_services._dns-sd._udp." + exports.TOP_LEVEL_DOMAIN; exports.REANNOUNCE_MAX_MS = 60 * 60 * 1000; diff --git a/dist/Listener.js b/dist/Listener.js index 8708846..6d51129 100644 --- a/dist/Listener.js +++ b/dist/Listener.js @@ -1,14 +1,26 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const debug_1 = __importDefault(require("debug")); const Query_1 = __importDefault(require("./Query")); @@ -16,7 +28,7 @@ const events_1 = require("events"); const MDNSUtil = __importStar(require("./MDNSUtil")); const RemoteService_1 = __importDefault(require("./RemoteService")); const Constants_1 = require("./Constants"); -const debugLog = debug_1.default("SpreadTheWord:Listener"); +const debugLog = (0, debug_1.default)("SpreadTheWord:Listener"); class Listener extends events_1.EventEmitter { constructor(server, options = {}) { super(); diff --git a/dist/MDNSUtil.js b/dist/MDNSUtil.js index fe3721d..8346353 100644 --- a/dist/MDNSUtil.js +++ b/dist/MDNSUtil.js @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +exports.serializeTXTData = exports.parseTXTData = exports.serializeRecord = exports.parseRecord = exports.getExternalAddresses = exports.sameRecord = exports.parseDNSName = exports.serializeDNSName = void 0; const os_1 = __importDefault(require("os")); const A_1 = __importDefault(require("./records/A")); const dns_txt_1 = __importDefault(require("dns-txt")); @@ -114,11 +115,11 @@ function serializeRecord(record, options = {}) { } exports.serializeRecord = serializeRecord; function parseTXTData(data, options = { binary: false }) { - const result = dns_txt_1.default({ binary: options.binary }).decode(data); + const result = (0, dns_txt_1.default)({ binary: options.binary }).decode(data); return Object.keys(result).length > 0 ? result : null; } exports.parseTXTData = parseTXTData; function serializeTXTData(data, options = { binary: false }) { - return dns_txt_1.default({ binary: options.binary }).encode(data); + return (0, dns_txt_1.default)({ binary: options.binary }).encode(data); } exports.serializeTXTData = serializeTXTData; diff --git a/dist/RecordRegistry.js b/dist/RecordRegistry.js index 5802734..af63297 100644 --- a/dist/RecordRegistry.js +++ b/dist/RecordRegistry.js @@ -1,9 +1,21 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/RemoteService.js b/dist/RemoteService.js index c48fbb8..cf9b148 100644 --- a/dist/RemoteService.js +++ b/dist/RemoteService.js @@ -1,9 +1,21 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/dist/Response.js b/dist/Response.js index 73ee383..1fb64f0 100644 --- a/dist/Response.js +++ b/dist/Response.js @@ -1,9 +1,21 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); @@ -21,8 +33,11 @@ class Response { const additionals = (options.additionals || []) .map(x => MDNSUtil.parseRecord(x, parseOptions)) .filter(x => x); - return new Response(Object.assign(Object.assign({}, options), { answers, - additionals })); + return new Response({ + ...options, + answers, + additionals + }); } static serialize(options, serializeOptions) { const answers = (options.answers || []) @@ -31,8 +46,11 @@ class Response { const additionals = (options.additionals || []) .map(x => MDNSUtil.serializeRecord(x, serializeOptions)) .filter(x => x); - return new Response(Object.assign(Object.assign({}, options), { answers, - additionals })); + return new Response({ + ...options, + answers, + additionals + }); } } exports.default = Response; diff --git a/dist/Server.d.ts b/dist/Server.d.ts index d880a3a..f645149 100644 --- a/dist/Server.d.ts +++ b/dist/Server.d.ts @@ -13,12 +13,12 @@ export interface ServerOptions { socketOptions?: any; } interface Server { - on(event: 'response', callback: (response: Response, referrer: Referrer) => void): this; - on(event: 'query', callback: (query: Query, referrer: Referrer) => void): this; - on(event: 'destroy', callback: () => void): this; - once(event: 'response', callback: (response: Response, referrer: Referrer) => void): this; - once(event: 'query', callback: (query: Query, referrer: Referrer) => void): this; - once(event: 'destroy', callback: () => void): this; + on(event: "response", callback: (response: Response, referrer: Referrer) => void): this; + on(event: "query", callback: (query: Query, referrer: Referrer) => void): this; + on(event: "destroy", callback: () => void): this; + once(event: "response", callback: (response: Response, referrer: Referrer) => void): this; + once(event: "query", callback: (query: Query, referrer: Referrer) => void): this; + once(event: "destroy", callback: () => void): this; } declare class Server extends EventEmitter { transportOptions: TransportOptions; diff --git a/dist/Server.js b/dist/Server.js index a0227a8..bc7df7f 100644 --- a/dist/Server.js +++ b/dist/Server.js @@ -9,7 +9,7 @@ const events_1 = require("events"); const Constants_1 = require("./Constants"); const RecordRegistry_1 = __importDefault(require("./RecordRegistry")); const MDNSTransport_1 = __importDefault(require("./transports/MDNSTransport")); -const debugLog = debug_1.default("SpreadTheWord:Server"); +const debugLog = (0, debug_1.default)("SpreadTheWord:Server"); class Server extends events_1.EventEmitter { constructor(options = {}) { super(); diff --git a/dist/Service.d.ts b/dist/Service.d.ts index 0734a2a..35eb92e 100644 --- a/dist/Service.d.ts +++ b/dist/Service.d.ts @@ -14,8 +14,8 @@ export interface ServiceOptions { hostname?: string; } interface Service { - on(event: 'destroy', callback: () => void): this; - once(event: 'destroy', callback: () => void): this; + on(event: "destroy", callback: () => void): this; + once(event: "destroy", callback: () => void): this; } declare class Service extends EventEmitter { type: string; diff --git a/dist/Service.js b/dist/Service.js index b2fec7f..2870616 100644 --- a/dist/Service.js +++ b/dist/Service.js @@ -1,14 +1,26 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const os_1 = __importDefault(require("os")); const debug_1 = __importDefault(require("debug")); @@ -18,7 +30,7 @@ const events_1 = require("events"); const MDNSUtil = __importStar(require("./MDNSUtil")); const records_1 = require("./records"); const Constants_1 = require("./Constants"); -const debugLog = debug_1.default("SpreadTheWord:Service"); +const debugLog = (0, debug_1.default)("SpreadTheWord:Service"); class Service extends events_1.EventEmitter { constructor(server, options) { super(); diff --git a/dist/SpreadTheWord.d.ts b/dist/SpreadTheWord.d.ts index b900b81..a5b7dc1 100644 --- a/dist/SpreadTheWord.d.ts +++ b/dist/SpreadTheWord.d.ts @@ -8,12 +8,12 @@ import Service, { ServiceOptions } from "./Service"; import Listener, { ListenerOptions } from "./Listener"; export declare type StatusType = "uninitialized" | "spreaded" | "destroyed"; interface SpreadTheWord { - on(event: 'up', callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; - on(event: 'down', callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; - on(event: 'destroy', callback: () => void): this; - once(event: 'up', callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; - once(event: 'down', callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; - once(event: 'destroy', callback: () => void): this; + on(event: "up", callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; + on(event: "down", callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; + on(event: "destroy", callback: () => void): this; + once(event: "up", callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; + once(event: "down", callback: (remoteService: RemoteService, response: Response, referrer: Referrer) => void): this; + once(event: "destroy", callback: () => void): this; } declare class SpreadTheWord extends EventEmitter { server: Server; diff --git a/dist/index.js b/dist/index.js index b8ad343..993e358 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,33 +1,46 @@ "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +exports.MDNSUtil = exports.transports = exports.records = exports.SpreadTheWord = exports.Listener = exports.Service = exports.RemoteService = exports.Referrer = exports.Response = exports.Question = exports.Query = exports.Server = void 0; var Server_1 = require("./Server"); -exports.Server = Server_1.default; +Object.defineProperty(exports, "Server", { enumerable: true, get: function () { return __importDefault(Server_1).default; } }); var Query_1 = require("./Query"); -exports.Query = Query_1.default; +Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return __importDefault(Query_1).default; } }); var Question_1 = require("./Question"); -exports.Question = Question_1.default; +Object.defineProperty(exports, "Question", { enumerable: true, get: function () { return __importDefault(Question_1).default; } }); var Response_1 = require("./Response"); -exports.Response = Response_1.default; +Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return __importDefault(Response_1).default; } }); var Referrer_1 = require("./Referrer"); -exports.Referrer = Referrer_1.default; +Object.defineProperty(exports, "Referrer", { enumerable: true, get: function () { return __importDefault(Referrer_1).default; } }); var RemoteService_1 = require("./RemoteService"); -exports.RemoteService = RemoteService_1.default; +Object.defineProperty(exports, "RemoteService", { enumerable: true, get: function () { return __importDefault(RemoteService_1).default; } }); var Service_1 = require("./Service"); -exports.Service = Service_1.default; +Object.defineProperty(exports, "Service", { enumerable: true, get: function () { return __importDefault(Service_1).default; } }); var Listener_1 = require("./Listener"); -exports.Listener = Listener_1.default; +Object.defineProperty(exports, "Listener", { enumerable: true, get: function () { return __importDefault(Listener_1).default; } }); var SpreadTheWord_1 = require("./SpreadTheWord"); -exports.SpreadTheWord = SpreadTheWord_1.default; +Object.defineProperty(exports, "SpreadTheWord", { enumerable: true, get: function () { return __importDefault(SpreadTheWord_1).default; } }); const records = __importStar(require("./records")); exports.records = records; const transports = __importStar(require("./transports")); diff --git a/dist/records/TXT.js b/dist/records/TXT.js index 715fb17..e257c1f 100644 --- a/dist/records/TXT.js +++ b/dist/records/TXT.js @@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const debug_1 = __importDefault(require("debug")); const Record_1 = __importDefault(require("./Record")); const MDNSUtil_1 = require("../MDNSUtil"); -const debugLog = debug_1.default("SpreadTheWord:TXT"); +const debugLog = (0, debug_1.default)("SpreadTheWord:TXT"); class TXT extends Record_1.default { constructor({ name, data, ttl }) { super("TXT"); @@ -16,15 +16,21 @@ class TXT extends Record_1.default { } static parse(record, options = {}) { debugLog("parse", record.data, options); - const data = MDNSUtil_1.parseTXTData(record.data, options); + const data = (0, MDNSUtil_1.parseTXTData)(record.data, options); debugLog("parse output", data, options); - return new TXT(Object.assign(Object.assign({}, record), { data })); + return new TXT({ + ...record, + data + }); } static serialize(record, options = {}) { debugLog("serialize", record.data, options); - const data = MDNSUtil_1.serializeTXTData(record.data, options); + const data = (0, MDNSUtil_1.serializeTXTData)(record.data, options); debugLog("serialize output", data, options); - return new TXT(Object.assign(Object.assign({}, record), { data })); + return new TXT({ + ...record, + data + }); } } exports.default = TXT; diff --git a/dist/records/index.js b/dist/records/index.js index 564a8a9..526ea7a 100644 --- a/dist/records/index.js +++ b/dist/records/index.js @@ -1,15 +1,19 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); +exports.TXT = exports.PTR = exports.SRV = exports.AAAA = exports.A = exports.default = exports.Record = void 0; var Record_1 = require("./Record"); -exports.Record = Record_1.default; -exports.default = Record_1.default; +Object.defineProperty(exports, "Record", { enumerable: true, get: function () { return __importDefault(Record_1).default; } }); +Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(Record_1).default; } }); var A_1 = require("./A"); -exports.A = A_1.default; +Object.defineProperty(exports, "A", { enumerable: true, get: function () { return __importDefault(A_1).default; } }); var AAAA_1 = require("./AAAA"); -exports.AAAA = AAAA_1.default; +Object.defineProperty(exports, "AAAA", { enumerable: true, get: function () { return __importDefault(AAAA_1).default; } }); var SRV_1 = require("./SRV"); -exports.SRV = SRV_1.default; +Object.defineProperty(exports, "SRV", { enumerable: true, get: function () { return __importDefault(SRV_1).default; } }); var PTR_1 = require("./PTR"); -exports.PTR = PTR_1.default; +Object.defineProperty(exports, "PTR", { enumerable: true, get: function () { return __importDefault(PTR_1).default; } }); var TXT_1 = require("./TXT"); -exports.TXT = TXT_1.default; +Object.defineProperty(exports, "TXT", { enumerable: true, get: function () { return __importDefault(TXT_1).default; } }); diff --git a/dist/transports/LocalTransport.d.ts b/dist/transports/LocalTransport.d.ts index 71ef9a4..ed52183 100644 --- a/dist/transports/LocalTransport.d.ts +++ b/dist/transports/LocalTransport.d.ts @@ -12,16 +12,16 @@ export interface LocalTransportOptions extends TransportOptions { }>; } interface LocalTransport { - on(event: 'query', callback: (query: Query, referrer: Referrer) => void): this; - on(event: 'response', callback: (response: any, referrer: Referrer) => void): this; - on(event: 'localQuery', callback: (packet: any, referrerObj: any) => void): this; - on(event: 'localResponse', callback: (packet: any, referrerObj: any) => void): this; - on(event: 'destroy', callback: () => void): this; - once(event: 'query', callback: (query: Query, referrer: Referrer) => void): this; - once(event: 'response', callback: (response: any, referrer: Referrer) => void): this; - once(event: 'localQuery', callback: (packet: any, referrerObj: any) => void): this; - once(event: 'localResponse', callback: (packet: any, referrerObj: any) => void): this; - once(event: 'destroy', callback: () => void): this; + on(event: "query", callback: (query: Query, referrer: Referrer) => void): this; + on(event: "response", callback: (response: any, referrer: Referrer) => void): this; + on(event: "localQuery", callback: (packet: any, referrerObj: any) => void): this; + on(event: "localResponse", callback: (packet: any, referrerObj: any) => void): this; + on(event: "destroy", callback: () => void): this; + once(event: "query", callback: (query: Query, referrer: Referrer) => void): this; + once(event: "response", callback: (response: any, referrer: Referrer) => void): this; + once(event: "localQuery", callback: (packet: any, referrerObj: any) => void): this; + once(event: "localResponse", callback: (packet: any, referrerObj: any) => void): this; + once(event: "destroy", callback: () => void): this; } declare class LocalTransport extends EventEmitter implements Transport { options: LocalTransportOptions; diff --git a/dist/transports/MDNSTransport.d.ts b/dist/transports/MDNSTransport.d.ts index 7b1028d..6371676 100644 --- a/dist/transports/MDNSTransport.d.ts +++ b/dist/transports/MDNSTransport.d.ts @@ -5,10 +5,10 @@ import Response from "../Response"; import { EventEmitter } from "events"; import Transport, { TransportOptions } from "./Transport"; interface MDNSTransport { - on(event: 'query', callback: (query: Query, referrer: Referrer) => void): this; - on(event: 'response', callback: (response: any, referrer: Referrer) => void): this; - once(event: 'query', callback: (query: Query, referrer: Referrer) => void): this; - once(event: 'response', callback: (response: any, referrer: Referrer) => void): this; + on(event: "query", callback: (query: Query, referrer: Referrer) => void): this; + on(event: "response", callback: (response: any, referrer: Referrer) => void): this; + once(event: "query", callback: (query: Query, referrer: Referrer) => void): this; + once(event: "response", callback: (response: any, referrer: Referrer) => void): this; } declare class MDNSTransport extends EventEmitter implements Transport { options: TransportOptions; diff --git a/dist/transports/MDNSTransport.js b/dist/transports/MDNSTransport.js index cc20a78..e5188e8 100644 --- a/dist/transports/MDNSTransport.js +++ b/dist/transports/MDNSTransport.js @@ -1,14 +1,26 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); return result; }; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); const Query_1 = __importDefault(require("../Query")); const Referrer_1 = __importDefault(require("../Referrer")); @@ -21,7 +33,7 @@ class MDNSTransport extends events_1.EventEmitter { super(); this.destroyed = false; this.options = options; - this.mdns = multicast_dns_1.default(); + this.mdns = (0, multicast_dns_1.default)(); this.mdns.setMaxListeners(0); this.mdns.on("query", async (packet, referrerObj) => { const query = new Query_1.default(packet); diff --git a/dist/transports/index.js b/dist/transports/index.js index 96ce32a..e12ba8f 100644 --- a/dist/transports/index.js +++ b/dist/transports/index.js @@ -1,6 +1,10 @@ "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); +exports.MDNSTransport = exports.LocalTransport = void 0; var LocalTransport_1 = require("./LocalTransport"); -exports.LocalTransport = LocalTransport_1.default; +Object.defineProperty(exports, "LocalTransport", { enumerable: true, get: function () { return __importDefault(LocalTransport_1).default; } }); var MDNSTransport_1 = require("./MDNSTransport"); -exports.MDNSTransport = MDNSTransport_1.default; +Object.defineProperty(exports, "MDNSTransport", { enumerable: true, get: function () { return __importDefault(MDNSTransport_1).default; } }); diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index 649cd5a..8917a24 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":32,"name":"TOP_LEVEL_DOMAIN","url":"globals.html#top_level_domain","classes":"tsd-kind-variable"},{"id":1,"kind":32,"name":"WILDCARD","url":"globals.html#wildcard","classes":"tsd-kind-variable"},{"id":2,"kind":32,"name":"REANNOUNCE_MAX_MS","url":"globals.html#reannounce_max_ms","classes":"tsd-kind-variable"},{"id":3,"kind":32,"name":"REANNOUNCE_FACTOR","url":"globals.html#reannounce_factor","classes":"tsd-kind-variable"},{"id":4,"kind":32,"name":"REQUERY_MAX_MS","url":"globals.html#requery_max_ms","classes":"tsd-kind-variable"},{"id":5,"kind":32,"name":"REQUERY_FACTOR","url":"globals.html#requery_factor","classes":"tsd-kind-variable"},{"id":6,"kind":128,"name":"Record","url":"classes/record.html","classes":"tsd-kind-class"},{"id":7,"kind":1024,"name":"name","url":"classes/record.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":8,"kind":1024,"name":"type","url":"classes/record.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":9,"kind":1024,"name":"ttl","url":"classes/record.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":10,"kind":1024,"name":"timestamp","url":"classes/record.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":11,"kind":1024,"name":"data","url":"classes/record.html#data","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":12,"kind":512,"name":"constructor","url":"classes/record.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Record"},{"id":13,"kind":4194304,"name":"RecordType","url":"globals.html#recordtype","classes":"tsd-kind-type-alias"},{"id":14,"kind":128,"name":"Question","url":"classes/question.html","classes":"tsd-kind-class"},{"id":15,"kind":1024,"name":"name","url":"classes/question.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Question"},{"id":16,"kind":1024,"name":"type","url":"classes/question.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Question"},{"id":17,"kind":512,"name":"constructor","url":"classes/question.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Question"},{"id":18,"kind":256,"name":"QueryOptions","url":"interfaces/queryoptions.html","classes":"tsd-kind-interface"},{"id":19,"kind":1024,"name":"questions","url":"interfaces/queryoptions.html#questions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueryOptions"},{"id":20,"kind":128,"name":"Query","url":"classes/query.html","classes":"tsd-kind-class"},{"id":21,"kind":1024,"name":"questions","url":"classes/query.html#questions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Query"},{"id":22,"kind":512,"name":"constructor","url":"classes/query.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Query"},{"id":23,"kind":128,"name":"A","url":"classes/a.html","classes":"tsd-kind-class"},{"id":24,"kind":1024,"name":"name","url":"classes/a.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"A"},{"id":25,"kind":1024,"name":"data","url":"classes/a.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"A"},{"id":26,"kind":512,"name":"constructor","url":"classes/a.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"A"},{"id":27,"kind":1024,"name":"type","url":"classes/a.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"A"},{"id":28,"kind":1024,"name":"ttl","url":"classes/a.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"A"},{"id":29,"kind":1024,"name":"timestamp","url":"classes/a.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"A"},{"id":30,"kind":128,"name":"TXT","url":"classes/txt.html","classes":"tsd-kind-class"},{"id":31,"kind":1024,"name":"name","url":"classes/txt.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"TXT"},{"id":32,"kind":1024,"name":"data","url":"classes/txt.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"TXT"},{"id":33,"kind":512,"name":"constructor","url":"classes/txt.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"TXT"},{"id":34,"kind":2048,"name":"parse","url":"classes/txt.html#parse","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TXT"},{"id":35,"kind":2048,"name":"serialize","url":"classes/txt.html#serialize","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TXT"},{"id":36,"kind":1024,"name":"type","url":"classes/txt.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"TXT"},{"id":37,"kind":1024,"name":"ttl","url":"classes/txt.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"TXT"},{"id":38,"kind":1024,"name":"timestamp","url":"classes/txt.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"TXT"},{"id":39,"kind":4194304,"name":"DataType","url":"globals.html#datatype","classes":"tsd-kind-type-alias"},{"id":40,"kind":32,"name":"debugLog","url":"globals.html#debuglog","classes":"tsd-kind-variable"},{"id":41,"kind":128,"name":"SRV","url":"classes/srv.html","classes":"tsd-kind-class"},{"id":42,"kind":1024,"name":"name","url":"classes/srv.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"SRV"},{"id":43,"kind":1024,"name":"data","url":"classes/srv.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"SRV"},{"id":44,"kind":65536,"name":"__type","url":"classes/srv.html#data.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"SRV.data"},{"id":45,"kind":32,"name":"target","url":"classes/srv.html#data.__type.target","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"SRV.data.__type"},{"id":46,"kind":32,"name":"port","url":"classes/srv.html#data.__type.port","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"SRV.data.__type"},{"id":47,"kind":512,"name":"constructor","url":"classes/srv.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"SRV"},{"id":48,"kind":1024,"name":"type","url":"classes/srv.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SRV"},{"id":49,"kind":1024,"name":"ttl","url":"classes/srv.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SRV"},{"id":50,"kind":1024,"name":"timestamp","url":"classes/srv.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SRV"},{"id":51,"kind":128,"name":"PTR","url":"classes/ptr.html","classes":"tsd-kind-class"},{"id":52,"kind":1024,"name":"name","url":"classes/ptr.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"PTR"},{"id":53,"kind":1024,"name":"data","url":"classes/ptr.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"PTR"},{"id":54,"kind":512,"name":"constructor","url":"classes/ptr.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"PTR"},{"id":55,"kind":1024,"name":"type","url":"classes/ptr.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"PTR"},{"id":56,"kind":1024,"name":"ttl","url":"classes/ptr.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"PTR"},{"id":57,"kind":1024,"name":"timestamp","url":"classes/ptr.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"PTR"},{"id":58,"kind":128,"name":"AAAA","url":"classes/aaaa.html","classes":"tsd-kind-class"},{"id":59,"kind":1024,"name":"name","url":"classes/aaaa.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"AAAA"},{"id":60,"kind":1024,"name":"data","url":"classes/aaaa.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"AAAA"},{"id":61,"kind":512,"name":"constructor","url":"classes/aaaa.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"AAAA"},{"id":62,"kind":1024,"name":"type","url":"classes/aaaa.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AAAA"},{"id":63,"kind":1024,"name":"ttl","url":"classes/aaaa.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AAAA"},{"id":64,"kind":1024,"name":"timestamp","url":"classes/aaaa.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AAAA"},{"id":65,"kind":256,"name":"MDNSNameOptions","url":"interfaces/mdnsnameoptions.html","classes":"tsd-kind-interface"},{"id":66,"kind":1024,"name":"name","url":"interfaces/mdnsnameoptions.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":67,"kind":1024,"name":"subtypes","url":"interfaces/mdnsnameoptions.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":68,"kind":1024,"name":"type","url":"interfaces/mdnsnameoptions.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":69,"kind":1024,"name":"protocol","url":"interfaces/mdnsnameoptions.html#protocol","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":70,"kind":1024,"name":"domain","url":"interfaces/mdnsnameoptions.html#domain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":71,"kind":256,"name":"TXTData","url":"interfaces/txtdata.html","classes":"tsd-kind-interface"},{"id":72,"kind":64,"name":"serializeDNSName","url":"globals.html#serializednsname","classes":"tsd-kind-function"},{"id":73,"kind":64,"name":"parseDNSName","url":"globals.html#parsednsname","classes":"tsd-kind-function"},{"id":74,"kind":64,"name":"sameRecord","url":"globals.html#samerecord","classes":"tsd-kind-function"},{"id":75,"kind":64,"name":"getExternalAddresses","url":"globals.html#getexternaladdresses","classes":"tsd-kind-function"},{"id":76,"kind":64,"name":"parseRecord","url":"globals.html#parserecord","classes":"tsd-kind-function"},{"id":77,"kind":64,"name":"serializeRecord","url":"globals.html#serializerecord","classes":"tsd-kind-function"},{"id":78,"kind":64,"name":"parseTXTData","url":"globals.html#parsetxtdata","classes":"tsd-kind-function"},{"id":79,"kind":64,"name":"serializeTXTData","url":"globals.html#serializetxtdata","classes":"tsd-kind-function"},{"id":80,"kind":256,"name":"ResponseOptions","url":"interfaces/responseoptions.html","classes":"tsd-kind-interface"},{"id":81,"kind":1024,"name":"answers","url":"interfaces/responseoptions.html#answers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseOptions"},{"id":82,"kind":1024,"name":"additionals","url":"interfaces/responseoptions.html#additionals","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseOptions"},{"id":83,"kind":128,"name":"Response","url":"classes/response.html","classes":"tsd-kind-class"},{"id":84,"kind":1024,"name":"answers","url":"classes/response.html#answers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Response"},{"id":85,"kind":1024,"name":"additionals","url":"classes/response.html#additionals","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Response"},{"id":86,"kind":512,"name":"constructor","url":"classes/response.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Response"},{"id":87,"kind":2048,"name":"parse","url":"classes/response.html#parse","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"Response"},{"id":88,"kind":2048,"name":"serialize","url":"classes/response.html#serialize","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"Response"},{"id":89,"kind":4194304,"name":"AddressRecord","url":"globals.html#addressrecord","classes":"tsd-kind-type-alias"},{"id":90,"kind":256,"name":"ServiceOptions","url":"interfaces/serviceoptions.html","classes":"tsd-kind-interface"},{"id":91,"kind":1024,"name":"name","url":"interfaces/serviceoptions.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":92,"kind":1024,"name":"type","url":"interfaces/serviceoptions.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":93,"kind":1024,"name":"port","url":"interfaces/serviceoptions.html#port","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":94,"kind":1024,"name":"protocol","url":"interfaces/serviceoptions.html#protocol","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":95,"kind":1024,"name":"subtypes","url":"interfaces/serviceoptions.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":96,"kind":1024,"name":"txt","url":"interfaces/serviceoptions.html#txt","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":97,"kind":1024,"name":"hostname","url":"interfaces/serviceoptions.html#hostname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":98,"kind":128,"name":"Service","url":"classes/service.html","classes":"tsd-kind-class"},{"id":99,"kind":2048,"name":"on","url":"classes/service.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Service"},{"id":100,"kind":2048,"name":"once","url":"classes/service.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Service"},{"id":101,"kind":1024,"name":"type","url":"classes/service.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":102,"kind":1024,"name":"name","url":"classes/service.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":103,"kind":1024,"name":"server","url":"classes/service.html#server","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":104,"kind":1024,"name":"dnsName","url":"classes/service.html#dnsname","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":105,"kind":1024,"name":"dnsType","url":"classes/service.html#dnstype","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":106,"kind":1024,"name":"protocol","url":"classes/service.html#protocol","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":107,"kind":1024,"name":"hostname","url":"classes/service.html#hostname","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":108,"kind":1024,"name":"port","url":"classes/service.html#port","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":109,"kind":1024,"name":"txt","url":"classes/service.html#txt","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":110,"kind":1024,"name":"rawTxt","url":"classes/service.html#rawtxt","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":111,"kind":1024,"name":"subtypes","url":"classes/service.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":112,"kind":1024,"name":"spreaded","url":"classes/service.html#spreaded","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":113,"kind":1024,"name":"destroyed","url":"classes/service.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":114,"kind":1024,"name":"broadcastDelay","url":"classes/service.html#broadcastdelay","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":115,"kind":512,"name":"constructor","url":"classes/service.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Service"},{"id":116,"kind":2048,"name":"spread","url":"classes/service.html#spread","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":117,"kind":2048,"name":"getServiceRecords","url":"classes/service.html#getservicerecords","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":118,"kind":2048,"name":"getAddressRecords","url":"classes/service.html#getaddressrecords","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":119,"kind":2048,"name":"broadcast","url":"classes/service.html#broadcast","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":120,"kind":2048,"name":"hide","url":"classes/service.html#hide","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":121,"kind":2048,"name":"sendGoodbye","url":"classes/service.html#sendgoodbye","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":122,"kind":2048,"name":"destroy","url":"classes/service.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":123,"kind":2048,"name":"listenerCount","url":"classes/service.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":124,"kind":1024,"name":"defaultMaxListeners","url":"classes/service.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":125,"kind":2048,"name":"addListener","url":"classes/service.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":126,"kind":2048,"name":"prependListener","url":"classes/service.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":127,"kind":2048,"name":"prependOnceListener","url":"classes/service.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":128,"kind":2048,"name":"removeListener","url":"classes/service.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":129,"kind":2048,"name":"removeAllListeners","url":"classes/service.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":130,"kind":2048,"name":"setMaxListeners","url":"classes/service.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":131,"kind":2048,"name":"getMaxListeners","url":"classes/service.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":132,"kind":2048,"name":"listeners","url":"classes/service.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":133,"kind":2048,"name":"rawListeners","url":"classes/service.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":134,"kind":2048,"name":"emit","url":"classes/service.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":135,"kind":2048,"name":"eventNames","url":"classes/service.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":136,"kind":2048,"name":"listenerCount","url":"classes/service.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Service"},{"id":137,"kind":256,"name":"ReferrerOptions","url":"interfaces/referreroptions.html","classes":"tsd-kind-interface"},{"id":138,"kind":1024,"name":"address","url":"interfaces/referreroptions.html#address","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":139,"kind":1024,"name":"family","url":"interfaces/referreroptions.html#family","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":140,"kind":1024,"name":"port","url":"interfaces/referreroptions.html#port","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":141,"kind":1024,"name":"size","url":"interfaces/referreroptions.html#size","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":142,"kind":128,"name":"Referrer","url":"classes/referrer.html","classes":"tsd-kind-class"},{"id":143,"kind":1024,"name":"address","url":"classes/referrer.html#address","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":144,"kind":1024,"name":"family","url":"classes/referrer.html#family","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":145,"kind":1024,"name":"port","url":"classes/referrer.html#port","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":146,"kind":1024,"name":"size","url":"classes/referrer.html#size","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":147,"kind":512,"name":"constructor","url":"classes/referrer.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Referrer"},{"id":148,"kind":128,"name":"RecordRegistry","url":"classes/recordregistry.html","classes":"tsd-kind-class"},{"id":149,"kind":1024,"name":"records","url":"classes/recordregistry.html#records","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RecordRegistry"},{"id":150,"kind":2048,"name":"add","url":"classes/recordregistry.html#add","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":151,"kind":2048,"name":"addAll","url":"classes/recordregistry.html#addall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":152,"kind":2048,"name":"remove","url":"classes/recordregistry.html#remove","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":153,"kind":2048,"name":"removeAll","url":"classes/recordregistry.html#removeall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":154,"kind":2048,"name":"findUnresolved","url":"classes/recordregistry.html#findunresolved","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":155,"kind":2048,"name":"tracePTR","url":"classes/recordregistry.html#traceptr","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":156,"kind":2048,"name":"findOneSRVByName","url":"classes/recordregistry.html#findonesrvbyname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":157,"kind":2048,"name":"findOneTXTByName","url":"classes/recordregistry.html#findonetxtbyname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":158,"kind":2048,"name":"findSRVsByType","url":"classes/recordregistry.html#findsrvsbytype","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":159,"kind":2048,"name":"findAddressRecordsByHostname","url":"classes/recordregistry.html#findaddressrecordsbyhostname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":160,"kind":2048,"name":"find","url":"classes/recordregistry.html#find","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":161,"kind":2048,"name":"findOne","url":"classes/recordregistry.html#findone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":162,"kind":2048,"name":"keepHouse","url":"classes/recordregistry.html#keephouse","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":163,"kind":256,"name":"TransportOptions","url":"interfaces/transportoptions.html","classes":"tsd-kind-interface"},{"id":164,"kind":1024,"name":"binaryTXT","url":"interfaces/transportoptions.html#binarytxt","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TransportOptions"},{"id":165,"kind":256,"name":"Transport","url":"interfaces/transport.html","classes":"tsd-kind-interface"},{"id":166,"kind":2048,"name":"query","url":"interfaces/transport.html#query","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":167,"kind":2048,"name":"respond","url":"interfaces/transport.html#respond","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":168,"kind":2048,"name":"destroy","url":"interfaces/transport.html#destroy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":169,"kind":2048,"name":"getAddresses","url":"interfaces/transport.html#getaddresses","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":170,"kind":2048,"name":"listenerCount","url":"interfaces/transport.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":171,"kind":1024,"name":"defaultMaxListeners","url":"interfaces/transport.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":172,"kind":2048,"name":"addListener","url":"interfaces/transport.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":173,"kind":2048,"name":"on","url":"interfaces/transport.html#on","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":174,"kind":2048,"name":"once","url":"interfaces/transport.html#once","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":175,"kind":2048,"name":"prependListener","url":"interfaces/transport.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":176,"kind":2048,"name":"prependOnceListener","url":"interfaces/transport.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":177,"kind":2048,"name":"removeListener","url":"interfaces/transport.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":178,"kind":2048,"name":"removeAllListeners","url":"interfaces/transport.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":179,"kind":2048,"name":"setMaxListeners","url":"interfaces/transport.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":180,"kind":2048,"name":"getMaxListeners","url":"interfaces/transport.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":181,"kind":2048,"name":"listeners","url":"interfaces/transport.html#listeners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":182,"kind":2048,"name":"rawListeners","url":"interfaces/transport.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":183,"kind":2048,"name":"emit","url":"interfaces/transport.html#emit","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":184,"kind":2048,"name":"eventNames","url":"interfaces/transport.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":185,"kind":2048,"name":"listenerCount","url":"interfaces/transport.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited","parent":"Transport"},{"id":186,"kind":128,"name":"MDNSTransport","url":"classes/mdnstransport.html","classes":"tsd-kind-class"},{"id":187,"kind":2048,"name":"on","url":"classes/mdnstransport.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MDNSTransport"},{"id":188,"kind":2048,"name":"once","url":"classes/mdnstransport.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MDNSTransport"},{"id":189,"kind":1024,"name":"options","url":"classes/mdnstransport.html#options","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MDNSTransport"},{"id":190,"kind":1024,"name":"destroyed","url":"classes/mdnstransport.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MDNSTransport"},{"id":191,"kind":1024,"name":"mdns","url":"classes/mdnstransport.html#mdns","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MDNSTransport"},{"id":192,"kind":512,"name":"constructor","url":"classes/mdnstransport.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"MDNSTransport"},{"id":193,"kind":2048,"name":"query","url":"classes/mdnstransport.html#query","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":194,"kind":2048,"name":"respond","url":"classes/mdnstransport.html#respond","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":195,"kind":2048,"name":"destroy","url":"classes/mdnstransport.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":196,"kind":2048,"name":"getAddresses","url":"classes/mdnstransport.html#getaddresses","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":197,"kind":2048,"name":"listenerCount","url":"classes/mdnstransport.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":198,"kind":1024,"name":"defaultMaxListeners","url":"classes/mdnstransport.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":199,"kind":2048,"name":"addListener","url":"classes/mdnstransport.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":200,"kind":2048,"name":"prependListener","url":"classes/mdnstransport.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":201,"kind":2048,"name":"prependOnceListener","url":"classes/mdnstransport.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":202,"kind":2048,"name":"removeListener","url":"classes/mdnstransport.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":203,"kind":2048,"name":"removeAllListeners","url":"classes/mdnstransport.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":204,"kind":2048,"name":"setMaxListeners","url":"classes/mdnstransport.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":205,"kind":2048,"name":"getMaxListeners","url":"classes/mdnstransport.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":206,"kind":2048,"name":"listeners","url":"classes/mdnstransport.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":207,"kind":2048,"name":"rawListeners","url":"classes/mdnstransport.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":208,"kind":2048,"name":"emit","url":"classes/mdnstransport.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":209,"kind":2048,"name":"eventNames","url":"classes/mdnstransport.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":210,"kind":2048,"name":"listenerCount","url":"classes/mdnstransport.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"MDNSTransport"},{"id":211,"kind":256,"name":"ServerOptions","url":"interfaces/serveroptions.html","classes":"tsd-kind-interface"},{"id":212,"kind":1024,"name":"transportOptions","url":"interfaces/serveroptions.html#transportoptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":213,"kind":1024,"name":"transport","url":"interfaces/serveroptions.html#transport","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":214,"kind":1024,"name":"recordRegistry","url":"interfaces/serveroptions.html#recordregistry","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":215,"kind":1024,"name":"socketOptions","url":"interfaces/serveroptions.html#socketoptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":216,"kind":128,"name":"Server","url":"classes/server.html","classes":"tsd-kind-class"},{"id":217,"kind":2048,"name":"on","url":"classes/server.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Server"},{"id":218,"kind":2048,"name":"once","url":"classes/server.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Server"},{"id":219,"kind":1024,"name":"transportOptions","url":"classes/server.html#transportoptions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":220,"kind":1024,"name":"services","url":"classes/server.html#services","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":221,"kind":1024,"name":"transport","url":"classes/server.html#transport","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":222,"kind":1024,"name":"recordRegistry","url":"classes/server.html#recordregistry","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":223,"kind":1024,"name":"destroyed","url":"classes/server.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":224,"kind":512,"name":"constructor","url":"classes/server.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Server"},{"id":225,"kind":2048,"name":"queryAndListen","url":"classes/server.html#queryandlisten","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":226,"kind":2048,"name":"answerQuery","url":"classes/server.html#answerquery","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":227,"kind":2048,"name":"destroy","url":"classes/server.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":228,"kind":2048,"name":"addService","url":"classes/server.html#addservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":229,"kind":2048,"name":"removeService","url":"classes/server.html#removeservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":230,"kind":2048,"name":"listenerCount","url":"classes/server.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":231,"kind":1024,"name":"defaultMaxListeners","url":"classes/server.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":232,"kind":2048,"name":"addListener","url":"classes/server.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":233,"kind":2048,"name":"prependListener","url":"classes/server.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":234,"kind":2048,"name":"prependOnceListener","url":"classes/server.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":235,"kind":2048,"name":"removeListener","url":"classes/server.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":236,"kind":2048,"name":"removeAllListeners","url":"classes/server.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":237,"kind":2048,"name":"setMaxListeners","url":"classes/server.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":238,"kind":2048,"name":"getMaxListeners","url":"classes/server.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":239,"kind":2048,"name":"listeners","url":"classes/server.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":240,"kind":2048,"name":"rawListeners","url":"classes/server.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":241,"kind":2048,"name":"emit","url":"classes/server.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":242,"kind":2048,"name":"eventNames","url":"classes/server.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":243,"kind":2048,"name":"listenerCount","url":"classes/server.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Server"},{"id":244,"kind":128,"name":"RemoteService","url":"classes/remoteservice.html","classes":"tsd-kind-class"},{"id":245,"kind":1024,"name":"name","url":"classes/remoteservice.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":246,"kind":1024,"name":"type","url":"classes/remoteservice.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":247,"kind":1024,"name":"subtypes","url":"classes/remoteservice.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":248,"kind":1024,"name":"protocol","url":"classes/remoteservice.html#protocol","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":249,"kind":1024,"name":"domain","url":"classes/remoteservice.html#domain","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":250,"kind":1024,"name":"hostname","url":"classes/remoteservice.html#hostname","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":251,"kind":1024,"name":"port","url":"classes/remoteservice.html#port","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":252,"kind":1024,"name":"txt","url":"classes/remoteservice.html#txt","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":253,"kind":1024,"name":"addresses","url":"classes/remoteservice.html#addresses","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":254,"kind":512,"name":"constructor","url":"classes/remoteservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"RemoteService"},{"id":255,"kind":256,"name":"ListenerOptions","url":"interfaces/listeneroptions.html","classes":"tsd-kind-interface"},{"id":256,"kind":1024,"name":"name","url":"interfaces/listeneroptions.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":257,"kind":1024,"name":"type","url":"interfaces/listeneroptions.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":258,"kind":1024,"name":"protocol","url":"interfaces/listeneroptions.html#protocol","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":259,"kind":1024,"name":"subtypes","url":"interfaces/listeneroptions.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":260,"kind":128,"name":"Listener","url":"classes/listener.html","classes":"tsd-kind-class"},{"id":261,"kind":2048,"name":"on","url":"classes/listener.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Listener"},{"id":262,"kind":2048,"name":"once","url":"classes/listener.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Listener"},{"id":263,"kind":1024,"name":"server","url":"classes/listener.html#server","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":264,"kind":1024,"name":"remoteServices","url":"classes/listener.html#remoteservices","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":265,"kind":1024,"name":"typeName","url":"classes/listener.html#typename","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":266,"kind":1024,"name":"wildcard","url":"classes/listener.html#wildcard","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":267,"kind":1024,"name":"requeryDelay","url":"classes/listener.html#requerydelay","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":268,"kind":512,"name":"constructor","url":"classes/listener.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Listener"},{"id":269,"kind":2048,"name":"listen","url":"classes/listener.html#listen","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":270,"kind":2048,"name":"query","url":"classes/listener.html#query","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":271,"kind":2048,"name":"requery","url":"classes/listener.html#requery","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":272,"kind":2048,"name":"onResponse","url":"classes/listener.html#onresponse","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":273,"kind":2048,"name":"destroy","url":"classes/listener.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":274,"kind":2048,"name":"addRemoteService","url":"classes/listener.html#addremoteservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":275,"kind":2048,"name":"removeRemoteService","url":"classes/listener.html#removeremoteservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":276,"kind":2048,"name":"queryUnresolvedRecords","url":"classes/listener.html#queryunresolvedrecords","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":277,"kind":2048,"name":"listenerCount","url":"classes/listener.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":278,"kind":1024,"name":"defaultMaxListeners","url":"classes/listener.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":279,"kind":2048,"name":"addListener","url":"classes/listener.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":280,"kind":2048,"name":"prependListener","url":"classes/listener.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":281,"kind":2048,"name":"prependOnceListener","url":"classes/listener.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":282,"kind":2048,"name":"removeListener","url":"classes/listener.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":283,"kind":2048,"name":"removeAllListeners","url":"classes/listener.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":284,"kind":2048,"name":"setMaxListeners","url":"classes/listener.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":285,"kind":2048,"name":"getMaxListeners","url":"classes/listener.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":286,"kind":2048,"name":"listeners","url":"classes/listener.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":287,"kind":2048,"name":"rawListeners","url":"classes/listener.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":288,"kind":2048,"name":"emit","url":"classes/listener.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":289,"kind":2048,"name":"eventNames","url":"classes/listener.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":290,"kind":2048,"name":"listenerCount","url":"classes/listener.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"Listener"},{"id":291,"kind":128,"name":"SpreadTheWord","url":"classes/spreadtheword.html","classes":"tsd-kind-class"},{"id":292,"kind":2048,"name":"on","url":"classes/spreadtheword.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"SpreadTheWord"},{"id":293,"kind":2048,"name":"once","url":"classes/spreadtheword.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"SpreadTheWord"},{"id":294,"kind":1024,"name":"server","url":"classes/spreadtheword.html#server","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":295,"kind":1024,"name":"servicesList","url":"classes/spreadtheword.html#serviceslist","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":296,"kind":1024,"name":"listenersList","url":"classes/spreadtheword.html#listenerslist","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":297,"kind":1024,"name":"status","url":"classes/spreadtheword.html#status","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":298,"kind":2048,"name":"init","url":"classes/spreadtheword.html#init","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":299,"kind":2048,"name":"spread","url":"classes/spreadtheword.html#spread","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":300,"kind":2048,"name":"listen","url":"classes/spreadtheword.html#listen","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":301,"kind":2048,"name":"destroy","url":"classes/spreadtheword.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":302,"kind":2048,"name":"listenerCount","url":"classes/spreadtheword.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":303,"kind":1024,"name":"defaultMaxListeners","url":"classes/spreadtheword.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":304,"kind":2048,"name":"addListener","url":"classes/spreadtheword.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":305,"kind":2048,"name":"prependListener","url":"classes/spreadtheword.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":306,"kind":2048,"name":"prependOnceListener","url":"classes/spreadtheword.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":307,"kind":2048,"name":"removeListener","url":"classes/spreadtheword.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":308,"kind":2048,"name":"removeAllListeners","url":"classes/spreadtheword.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":309,"kind":2048,"name":"setMaxListeners","url":"classes/spreadtheword.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":310,"kind":2048,"name":"getMaxListeners","url":"classes/spreadtheword.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":311,"kind":2048,"name":"listeners","url":"classes/spreadtheword.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":312,"kind":2048,"name":"rawListeners","url":"classes/spreadtheword.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":313,"kind":2048,"name":"emit","url":"classes/spreadtheword.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":314,"kind":2048,"name":"eventNames","url":"classes/spreadtheword.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":315,"kind":2048,"name":"listenerCount","url":"classes/spreadtheword.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"SpreadTheWord"},{"id":316,"kind":4194304,"name":"StatusType","url":"globals.html#statustype","classes":"tsd-kind-type-alias"},{"id":317,"kind":256,"name":"LocalTransportOptions","url":"interfaces/localtransportoptions.html","classes":"tsd-kind-interface"},{"id":318,"kind":1024,"name":"referrerOptions","url":"interfaces/localtransportoptions.html#referreroptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LocalTransportOptions"},{"id":319,"kind":1024,"name":"addresses","url":"interfaces/localtransportoptions.html#addresses","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LocalTransportOptions"},{"id":320,"kind":1024,"name":"binaryTXT","url":"interfaces/localtransportoptions.html#binarytxt","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"LocalTransportOptions"},{"id":321,"kind":128,"name":"LocalTransport","url":"classes/localtransport.html","classes":"tsd-kind-class"},{"id":322,"kind":2048,"name":"on","url":"classes/localtransport.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"LocalTransport"},{"id":323,"kind":2048,"name":"once","url":"classes/localtransport.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"LocalTransport"},{"id":324,"kind":1024,"name":"options","url":"classes/localtransport.html#options","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":325,"kind":1024,"name":"addresses","url":"classes/localtransport.html#addresses","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":326,"kind":1024,"name":"destroyed","url":"classes/localtransport.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":327,"kind":1024,"name":"referrer","url":"classes/localtransport.html#referrer","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":328,"kind":512,"name":"constructor","url":"classes/localtransport.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"LocalTransport"},{"id":329,"kind":2048,"name":"query","url":"classes/localtransport.html#query","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":330,"kind":2048,"name":"respond","url":"classes/localtransport.html#respond","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":331,"kind":2048,"name":"destroy","url":"classes/localtransport.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":332,"kind":2048,"name":"getAddresses","url":"classes/localtransport.html#getaddresses","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":333,"kind":2048,"name":"listenerCount","url":"classes/localtransport.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":334,"kind":1024,"name":"defaultMaxListeners","url":"classes/localtransport.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":335,"kind":2048,"name":"addListener","url":"classes/localtransport.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":336,"kind":2048,"name":"prependListener","url":"classes/localtransport.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":337,"kind":2048,"name":"prependOnceListener","url":"classes/localtransport.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":338,"kind":2048,"name":"removeListener","url":"classes/localtransport.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":339,"kind":2048,"name":"removeAllListeners","url":"classes/localtransport.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":340,"kind":2048,"name":"setMaxListeners","url":"classes/localtransport.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":341,"kind":2048,"name":"getMaxListeners","url":"classes/localtransport.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":342,"kind":2048,"name":"listeners","url":"classes/localtransport.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":343,"kind":2048,"name":"rawListeners","url":"classes/localtransport.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":344,"kind":2048,"name":"emit","url":"classes/localtransport.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":345,"kind":2048,"name":"eventNames","url":"classes/localtransport.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":346,"kind":2048,"name":"listenerCount","url":"classes/localtransport.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited","parent":"LocalTransport"},{"id":347,"kind":64,"name":"toPlainObject","url":"globals.html#toplainobject","classes":"tsd-kind-function"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":32,"name":"TOP_LEVEL_DOMAIN","url":"globals.html#top_level_domain","classes":"tsd-kind-variable"},{"id":1,"kind":32,"name":"WILDCARD","url":"globals.html#wildcard","classes":"tsd-kind-variable"},{"id":2,"kind":32,"name":"REANNOUNCE_MAX_MS","url":"globals.html#reannounce_max_ms","classes":"tsd-kind-variable"},{"id":3,"kind":32,"name":"REANNOUNCE_FACTOR","url":"globals.html#reannounce_factor","classes":"tsd-kind-variable"},{"id":4,"kind":32,"name":"REQUERY_MAX_MS","url":"globals.html#requery_max_ms","classes":"tsd-kind-variable"},{"id":5,"kind":32,"name":"REQUERY_FACTOR","url":"globals.html#requery_factor","classes":"tsd-kind-variable"},{"id":6,"kind":128,"name":"Record","url":"classes/record.html","classes":"tsd-kind-class"},{"id":7,"kind":1024,"name":"name","url":"classes/record.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":8,"kind":1024,"name":"type","url":"classes/record.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":9,"kind":1024,"name":"ttl","url":"classes/record.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":10,"kind":1024,"name":"timestamp","url":"classes/record.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":11,"kind":1024,"name":"data","url":"classes/record.html#data","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Record"},{"id":12,"kind":512,"name":"constructor","url":"classes/record.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Record"},{"id":13,"kind":4194304,"name":"RecordType","url":"globals.html#recordtype","classes":"tsd-kind-type-alias"},{"id":14,"kind":128,"name":"Question","url":"classes/question.html","classes":"tsd-kind-class"},{"id":15,"kind":1024,"name":"name","url":"classes/question.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Question"},{"id":16,"kind":1024,"name":"type","url":"classes/question.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Question"},{"id":17,"kind":512,"name":"constructor","url":"classes/question.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Question"},{"id":18,"kind":256,"name":"QueryOptions","url":"interfaces/queryoptions.html","classes":"tsd-kind-interface"},{"id":19,"kind":1024,"name":"questions","url":"interfaces/queryoptions.html#questions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"QueryOptions"},{"id":20,"kind":128,"name":"Query","url":"classes/query.html","classes":"tsd-kind-class"},{"id":21,"kind":1024,"name":"questions","url":"classes/query.html#questions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Query"},{"id":22,"kind":512,"name":"constructor","url":"classes/query.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Query"},{"id":23,"kind":128,"name":"A","url":"classes/a.html","classes":"tsd-kind-class"},{"id":24,"kind":1024,"name":"name","url":"classes/a.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"A"},{"id":25,"kind":1024,"name":"data","url":"classes/a.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"A"},{"id":26,"kind":512,"name":"constructor","url":"classes/a.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"A"},{"id":27,"kind":1024,"name":"type","url":"classes/a.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"A"},{"id":28,"kind":1024,"name":"ttl","url":"classes/a.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"A"},{"id":29,"kind":1024,"name":"timestamp","url":"classes/a.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"A"},{"id":30,"kind":128,"name":"TXT","url":"classes/txt.html","classes":"tsd-kind-class"},{"id":31,"kind":1024,"name":"name","url":"classes/txt.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"TXT"},{"id":32,"kind":1024,"name":"data","url":"classes/txt.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"TXT"},{"id":33,"kind":512,"name":"constructor","url":"classes/txt.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"TXT"},{"id":34,"kind":2048,"name":"parse","url":"classes/txt.html#parse","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TXT"},{"id":35,"kind":2048,"name":"serialize","url":"classes/txt.html#serialize","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"TXT"},{"id":36,"kind":1024,"name":"type","url":"classes/txt.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"TXT"},{"id":37,"kind":1024,"name":"ttl","url":"classes/txt.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"TXT"},{"id":38,"kind":1024,"name":"timestamp","url":"classes/txt.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"TXT"},{"id":39,"kind":4194304,"name":"DataType","url":"globals.html#datatype","classes":"tsd-kind-type-alias"},{"id":40,"kind":32,"name":"debugLog","url":"globals.html#debuglog","classes":"tsd-kind-variable"},{"id":41,"kind":128,"name":"SRV","url":"classes/srv.html","classes":"tsd-kind-class"},{"id":42,"kind":1024,"name":"name","url":"classes/srv.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"SRV"},{"id":43,"kind":1024,"name":"data","url":"classes/srv.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"SRV"},{"id":44,"kind":65536,"name":"__type","url":"classes/srv.html#data.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"SRV.data"},{"id":45,"kind":32,"name":"target","url":"classes/srv.html#data.__type.target","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"SRV.data.__type"},{"id":46,"kind":32,"name":"port","url":"classes/srv.html#data.__type.port","classes":"tsd-kind-variable tsd-parent-kind-type-literal","parent":"SRV.data.__type"},{"id":47,"kind":512,"name":"constructor","url":"classes/srv.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"SRV"},{"id":48,"kind":1024,"name":"type","url":"classes/srv.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SRV"},{"id":49,"kind":1024,"name":"ttl","url":"classes/srv.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SRV"},{"id":50,"kind":1024,"name":"timestamp","url":"classes/srv.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"SRV"},{"id":51,"kind":128,"name":"PTR","url":"classes/ptr.html","classes":"tsd-kind-class"},{"id":52,"kind":1024,"name":"name","url":"classes/ptr.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"PTR"},{"id":53,"kind":1024,"name":"data","url":"classes/ptr.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"PTR"},{"id":54,"kind":512,"name":"constructor","url":"classes/ptr.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"PTR"},{"id":55,"kind":1024,"name":"type","url":"classes/ptr.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"PTR"},{"id":56,"kind":1024,"name":"ttl","url":"classes/ptr.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"PTR"},{"id":57,"kind":1024,"name":"timestamp","url":"classes/ptr.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"PTR"},{"id":58,"kind":128,"name":"AAAA","url":"classes/aaaa.html","classes":"tsd-kind-class"},{"id":59,"kind":1024,"name":"name","url":"classes/aaaa.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"AAAA"},{"id":60,"kind":1024,"name":"data","url":"classes/aaaa.html#data","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"AAAA"},{"id":61,"kind":512,"name":"constructor","url":"classes/aaaa.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"AAAA"},{"id":62,"kind":1024,"name":"type","url":"classes/aaaa.html#type","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AAAA"},{"id":63,"kind":1024,"name":"ttl","url":"classes/aaaa.html#ttl","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AAAA"},{"id":64,"kind":1024,"name":"timestamp","url":"classes/aaaa.html#timestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"AAAA"},{"id":65,"kind":256,"name":"MDNSNameOptions","url":"interfaces/mdnsnameoptions.html","classes":"tsd-kind-interface"},{"id":66,"kind":1024,"name":"name","url":"interfaces/mdnsnameoptions.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":67,"kind":1024,"name":"subtypes","url":"interfaces/mdnsnameoptions.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":68,"kind":1024,"name":"type","url":"interfaces/mdnsnameoptions.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":69,"kind":1024,"name":"protocol","url":"interfaces/mdnsnameoptions.html#protocol","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":70,"kind":1024,"name":"domain","url":"interfaces/mdnsnameoptions.html#domain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSNameOptions"},{"id":71,"kind":256,"name":"TXTData","url":"interfaces/txtdata.html","classes":"tsd-kind-interface"},{"id":72,"kind":64,"name":"serializeDNSName","url":"globals.html#serializednsname","classes":"tsd-kind-function"},{"id":73,"kind":64,"name":"parseDNSName","url":"globals.html#parsednsname","classes":"tsd-kind-function"},{"id":74,"kind":64,"name":"sameRecord","url":"globals.html#samerecord","classes":"tsd-kind-function"},{"id":75,"kind":64,"name":"getExternalAddresses","url":"globals.html#getexternaladdresses","classes":"tsd-kind-function"},{"id":76,"kind":64,"name":"parseRecord","url":"globals.html#parserecord","classes":"tsd-kind-function"},{"id":77,"kind":64,"name":"serializeRecord","url":"globals.html#serializerecord","classes":"tsd-kind-function"},{"id":78,"kind":64,"name":"parseTXTData","url":"globals.html#parsetxtdata","classes":"tsd-kind-function"},{"id":79,"kind":64,"name":"serializeTXTData","url":"globals.html#serializetxtdata","classes":"tsd-kind-function"},{"id":80,"kind":256,"name":"ResponseOptions","url":"interfaces/responseoptions.html","classes":"tsd-kind-interface"},{"id":81,"kind":1024,"name":"answers","url":"interfaces/responseoptions.html#answers","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseOptions"},{"id":82,"kind":1024,"name":"additionals","url":"interfaces/responseoptions.html#additionals","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ResponseOptions"},{"id":83,"kind":128,"name":"Response","url":"classes/response.html","classes":"tsd-kind-class"},{"id":84,"kind":1024,"name":"answers","url":"classes/response.html#answers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Response"},{"id":85,"kind":1024,"name":"additionals","url":"classes/response.html#additionals","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Response"},{"id":86,"kind":512,"name":"constructor","url":"classes/response.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Response"},{"id":87,"kind":2048,"name":"parse","url":"classes/response.html#parse","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"Response"},{"id":88,"kind":2048,"name":"serialize","url":"classes/response.html#serialize","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-static","parent":"Response"},{"id":89,"kind":4194304,"name":"AddressRecord","url":"globals.html#addressrecord","classes":"tsd-kind-type-alias"},{"id":90,"kind":256,"name":"ServiceOptions","url":"interfaces/serviceoptions.html","classes":"tsd-kind-interface"},{"id":91,"kind":1024,"name":"name","url":"interfaces/serviceoptions.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":92,"kind":1024,"name":"type","url":"interfaces/serviceoptions.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":93,"kind":1024,"name":"port","url":"interfaces/serviceoptions.html#port","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":94,"kind":1024,"name":"protocol","url":"interfaces/serviceoptions.html#protocol","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":95,"kind":1024,"name":"subtypes","url":"interfaces/serviceoptions.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":96,"kind":1024,"name":"txt","url":"interfaces/serviceoptions.html#txt","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":97,"kind":1024,"name":"hostname","url":"interfaces/serviceoptions.html#hostname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServiceOptions"},{"id":98,"kind":128,"name":"Service","url":"classes/service.html","classes":"tsd-kind-class"},{"id":99,"kind":2048,"name":"on","url":"classes/service.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Service"},{"id":100,"kind":2048,"name":"once","url":"classes/service.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Service"},{"id":101,"kind":1024,"name":"type","url":"classes/service.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":102,"kind":1024,"name":"name","url":"classes/service.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":103,"kind":1024,"name":"server","url":"classes/service.html#server","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":104,"kind":1024,"name":"dnsName","url":"classes/service.html#dnsname","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":105,"kind":1024,"name":"dnsType","url":"classes/service.html#dnstype","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":106,"kind":1024,"name":"protocol","url":"classes/service.html#protocol","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":107,"kind":1024,"name":"hostname","url":"classes/service.html#hostname","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":108,"kind":1024,"name":"port","url":"classes/service.html#port","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":109,"kind":1024,"name":"txt","url":"classes/service.html#txt","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":110,"kind":1024,"name":"rawTxt","url":"classes/service.html#rawtxt","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":111,"kind":1024,"name":"subtypes","url":"classes/service.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":112,"kind":1024,"name":"spreaded","url":"classes/service.html#spreaded","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":113,"kind":1024,"name":"destroyed","url":"classes/service.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":114,"kind":1024,"name":"broadcastDelay","url":"classes/service.html#broadcastdelay","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Service"},{"id":115,"kind":512,"name":"constructor","url":"classes/service.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"Service"},{"id":116,"kind":2048,"name":"spread","url":"classes/service.html#spread","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":117,"kind":2048,"name":"getServiceRecords","url":"classes/service.html#getservicerecords","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":118,"kind":2048,"name":"getAddressRecords","url":"classes/service.html#getaddressrecords","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":119,"kind":2048,"name":"broadcast","url":"classes/service.html#broadcast","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":120,"kind":2048,"name":"hide","url":"classes/service.html#hide","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":121,"kind":2048,"name":"sendGoodbye","url":"classes/service.html#sendgoodbye","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":122,"kind":2048,"name":"destroy","url":"classes/service.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Service"},{"id":123,"kind":2048,"name":"addListener","url":"classes/service.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":124,"kind":2048,"name":"removeListener","url":"classes/service.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":125,"kind":2048,"name":"off","url":"classes/service.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":126,"kind":2048,"name":"removeAllListeners","url":"classes/service.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":127,"kind":2048,"name":"setMaxListeners","url":"classes/service.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":128,"kind":2048,"name":"getMaxListeners","url":"classes/service.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":129,"kind":2048,"name":"listeners","url":"classes/service.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":130,"kind":2048,"name":"rawListeners","url":"classes/service.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":131,"kind":2048,"name":"emit","url":"classes/service.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":132,"kind":2048,"name":"listenerCount","url":"classes/service.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":133,"kind":2048,"name":"prependListener","url":"classes/service.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":134,"kind":2048,"name":"prependOnceListener","url":"classes/service.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":135,"kind":2048,"name":"eventNames","url":"classes/service.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Service"},{"id":136,"kind":2048,"name":"once","url":"classes/service.html#once-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static","parent":"Service"},{"id":137,"kind":2048,"name":"on","url":"classes/service.html#on-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":138,"kind":2048,"name":"listenerCount","url":"classes/service.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":139,"kind":2048,"name":"getEventListeners","url":"classes/service.html#geteventlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":140,"kind":1024,"name":"errorMonitor","url":"classes/service.html#errormonitor","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":141,"kind":1024,"name":"captureRejectionSymbol","url":"classes/service.html#capturerejectionsymbol","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":142,"kind":1024,"name":"captureRejections","url":"classes/service.html#capturerejections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":143,"kind":1024,"name":"defaultMaxListeners","url":"classes/service.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Service"},{"id":144,"kind":256,"name":"Abortable","url":"interfaces/service.abortable.html","classes":"tsd-kind-interface tsd-parent-kind-class","parent":"Service"},{"id":145,"kind":1024,"name":"signal","url":"interfaces/service.abortable.html#signal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Service.Abortable"},{"id":146,"kind":256,"name":"ReferrerOptions","url":"interfaces/referreroptions.html","classes":"tsd-kind-interface"},{"id":147,"kind":1024,"name":"address","url":"interfaces/referreroptions.html#address","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":148,"kind":1024,"name":"family","url":"interfaces/referreroptions.html#family","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":149,"kind":1024,"name":"port","url":"interfaces/referreroptions.html#port","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":150,"kind":1024,"name":"size","url":"interfaces/referreroptions.html#size","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ReferrerOptions"},{"id":151,"kind":128,"name":"Referrer","url":"classes/referrer.html","classes":"tsd-kind-class"},{"id":152,"kind":1024,"name":"address","url":"classes/referrer.html#address","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":153,"kind":1024,"name":"family","url":"classes/referrer.html#family","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":154,"kind":1024,"name":"port","url":"classes/referrer.html#port","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":155,"kind":1024,"name":"size","url":"classes/referrer.html#size","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Referrer"},{"id":156,"kind":512,"name":"constructor","url":"classes/referrer.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"Referrer"},{"id":157,"kind":128,"name":"RecordRegistry","url":"classes/recordregistry.html","classes":"tsd-kind-class"},{"id":158,"kind":1024,"name":"records","url":"classes/recordregistry.html#records","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RecordRegistry"},{"id":159,"kind":2048,"name":"add","url":"classes/recordregistry.html#add","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":160,"kind":2048,"name":"addAll","url":"classes/recordregistry.html#addall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":161,"kind":2048,"name":"remove","url":"classes/recordregistry.html#remove","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":162,"kind":2048,"name":"removeAll","url":"classes/recordregistry.html#removeall","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":163,"kind":2048,"name":"findUnresolved","url":"classes/recordregistry.html#findunresolved","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":164,"kind":2048,"name":"tracePTR","url":"classes/recordregistry.html#traceptr","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":165,"kind":2048,"name":"findOneSRVByName","url":"classes/recordregistry.html#findonesrvbyname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":166,"kind":2048,"name":"findOneTXTByName","url":"classes/recordregistry.html#findonetxtbyname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":167,"kind":2048,"name":"findSRVsByType","url":"classes/recordregistry.html#findsrvsbytype","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":168,"kind":2048,"name":"findAddressRecordsByHostname","url":"classes/recordregistry.html#findaddressrecordsbyhostname","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":169,"kind":2048,"name":"find","url":"classes/recordregistry.html#find","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":170,"kind":2048,"name":"findOne","url":"classes/recordregistry.html#findone","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":171,"kind":2048,"name":"keepHouse","url":"classes/recordregistry.html#keephouse","classes":"tsd-kind-method tsd-parent-kind-class","parent":"RecordRegistry"},{"id":172,"kind":256,"name":"TransportOptions","url":"interfaces/transportoptions.html","classes":"tsd-kind-interface"},{"id":173,"kind":1024,"name":"binaryTXT","url":"interfaces/transportoptions.html#binarytxt","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"TransportOptions"},{"id":174,"kind":256,"name":"Transport","url":"interfaces/transport.html","classes":"tsd-kind-interface"},{"id":175,"kind":2048,"name":"query","url":"interfaces/transport.html#query","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":176,"kind":2048,"name":"respond","url":"interfaces/transport.html#respond","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":177,"kind":2048,"name":"destroy","url":"interfaces/transport.html#destroy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":178,"kind":2048,"name":"getAddresses","url":"interfaces/transport.html#getaddresses","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"Transport"},{"id":179,"kind":2048,"name":"addListener","url":"interfaces/transport.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":180,"kind":2048,"name":"on","url":"interfaces/transport.html#on","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":181,"kind":2048,"name":"once","url":"interfaces/transport.html#once","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":182,"kind":2048,"name":"removeListener","url":"interfaces/transport.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":183,"kind":2048,"name":"off","url":"interfaces/transport.html#off","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":184,"kind":2048,"name":"removeAllListeners","url":"interfaces/transport.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":185,"kind":2048,"name":"setMaxListeners","url":"interfaces/transport.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":186,"kind":2048,"name":"getMaxListeners","url":"interfaces/transport.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":187,"kind":2048,"name":"listeners","url":"interfaces/transport.html#listeners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":188,"kind":2048,"name":"rawListeners","url":"interfaces/transport.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":189,"kind":2048,"name":"emit","url":"interfaces/transport.html#emit","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":190,"kind":2048,"name":"listenerCount","url":"interfaces/transport.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":191,"kind":2048,"name":"prependListener","url":"interfaces/transport.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":192,"kind":2048,"name":"prependOnceListener","url":"interfaces/transport.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":193,"kind":2048,"name":"eventNames","url":"interfaces/transport.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":194,"kind":512,"name":"constructor","url":"interfaces/transport.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-interface tsd-is-inherited","parent":"Transport"},{"id":195,"kind":2048,"name":"once","url":"interfaces/transport.html#once-1","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-overwrite tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":196,"kind":2048,"name":"on","url":"interfaces/transport.html#on-1","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":197,"kind":2048,"name":"listenerCount","url":"interfaces/transport.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":198,"kind":2048,"name":"getEventListeners","url":"interfaces/transport.html#geteventlisteners","classes":"tsd-kind-method tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":199,"kind":1024,"name":"errorMonitor","url":"interfaces/transport.html#errormonitor","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":200,"kind":1024,"name":"captureRejectionSymbol","url":"interfaces/transport.html#capturerejectionsymbol","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":201,"kind":1024,"name":"captureRejections","url":"interfaces/transport.html#capturerejections","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":202,"kind":1024,"name":"defaultMaxListeners","url":"interfaces/transport.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited tsd-is-static","parent":"Transport"},{"id":203,"kind":256,"name":"Abortable","url":"interfaces/transport.abortable.html","classes":"tsd-kind-interface tsd-parent-kind-interface","parent":"Transport"},{"id":204,"kind":1024,"name":"signal","url":"interfaces/transport.abortable.html#signal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Transport.Abortable"},{"id":205,"kind":128,"name":"MDNSTransport","url":"classes/mdnstransport.html","classes":"tsd-kind-class"},{"id":206,"kind":2048,"name":"on","url":"classes/mdnstransport.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MDNSTransport"},{"id":207,"kind":2048,"name":"once","url":"classes/mdnstransport.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"MDNSTransport"},{"id":208,"kind":1024,"name":"options","url":"classes/mdnstransport.html#options","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MDNSTransport"},{"id":209,"kind":1024,"name":"destroyed","url":"classes/mdnstransport.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MDNSTransport"},{"id":210,"kind":1024,"name":"mdns","url":"classes/mdnstransport.html#mdns","classes":"tsd-kind-property tsd-parent-kind-class","parent":"MDNSTransport"},{"id":211,"kind":512,"name":"constructor","url":"classes/mdnstransport.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"MDNSTransport"},{"id":212,"kind":2048,"name":"query","url":"classes/mdnstransport.html#query","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":213,"kind":2048,"name":"respond","url":"classes/mdnstransport.html#respond","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":214,"kind":2048,"name":"destroy","url":"classes/mdnstransport.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":215,"kind":2048,"name":"getAddresses","url":"classes/mdnstransport.html#getaddresses","classes":"tsd-kind-method tsd-parent-kind-class","parent":"MDNSTransport"},{"id":216,"kind":2048,"name":"addListener","url":"classes/mdnstransport.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":217,"kind":2048,"name":"removeListener","url":"classes/mdnstransport.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":218,"kind":2048,"name":"off","url":"classes/mdnstransport.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":219,"kind":2048,"name":"removeAllListeners","url":"classes/mdnstransport.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":220,"kind":2048,"name":"setMaxListeners","url":"classes/mdnstransport.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":221,"kind":2048,"name":"getMaxListeners","url":"classes/mdnstransport.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":222,"kind":2048,"name":"listeners","url":"classes/mdnstransport.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":223,"kind":2048,"name":"rawListeners","url":"classes/mdnstransport.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":224,"kind":2048,"name":"emit","url":"classes/mdnstransport.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":225,"kind":2048,"name":"listenerCount","url":"classes/mdnstransport.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":226,"kind":2048,"name":"prependListener","url":"classes/mdnstransport.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":227,"kind":2048,"name":"prependOnceListener","url":"classes/mdnstransport.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":228,"kind":2048,"name":"eventNames","url":"classes/mdnstransport.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"MDNSTransport"},{"id":229,"kind":2048,"name":"once","url":"classes/mdnstransport.html#once-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":230,"kind":2048,"name":"on","url":"classes/mdnstransport.html#on-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":231,"kind":2048,"name":"listenerCount","url":"classes/mdnstransport.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":232,"kind":2048,"name":"getEventListeners","url":"classes/mdnstransport.html#geteventlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":233,"kind":1024,"name":"errorMonitor","url":"classes/mdnstransport.html#errormonitor","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":234,"kind":1024,"name":"captureRejectionSymbol","url":"classes/mdnstransport.html#capturerejectionsymbol","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":235,"kind":1024,"name":"captureRejections","url":"classes/mdnstransport.html#capturerejections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":236,"kind":1024,"name":"defaultMaxListeners","url":"classes/mdnstransport.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"MDNSTransport"},{"id":237,"kind":256,"name":"Abortable","url":"interfaces/mdnstransport.abortable.html","classes":"tsd-kind-interface tsd-parent-kind-class","parent":"MDNSTransport"},{"id":238,"kind":1024,"name":"signal","url":"interfaces/mdnstransport.abortable.html#signal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"MDNSTransport.Abortable"},{"id":239,"kind":256,"name":"ServerOptions","url":"interfaces/serveroptions.html","classes":"tsd-kind-interface"},{"id":240,"kind":1024,"name":"transportOptions","url":"interfaces/serveroptions.html#transportoptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":241,"kind":1024,"name":"transport","url":"interfaces/serveroptions.html#transport","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":242,"kind":1024,"name":"recordRegistry","url":"interfaces/serveroptions.html#recordregistry","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":243,"kind":1024,"name":"socketOptions","url":"interfaces/serveroptions.html#socketoptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ServerOptions"},{"id":244,"kind":128,"name":"Server","url":"classes/server.html","classes":"tsd-kind-class"},{"id":245,"kind":2048,"name":"on","url":"classes/server.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Server"},{"id":246,"kind":2048,"name":"once","url":"classes/server.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Server"},{"id":247,"kind":1024,"name":"transportOptions","url":"classes/server.html#transportoptions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":248,"kind":1024,"name":"services","url":"classes/server.html#services","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":249,"kind":1024,"name":"transport","url":"classes/server.html#transport","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":250,"kind":1024,"name":"recordRegistry","url":"classes/server.html#recordregistry","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":251,"kind":1024,"name":"destroyed","url":"classes/server.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Server"},{"id":252,"kind":512,"name":"constructor","url":"classes/server.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"Server"},{"id":253,"kind":2048,"name":"queryAndListen","url":"classes/server.html#queryandlisten","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":254,"kind":2048,"name":"answerQuery","url":"classes/server.html#answerquery","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":255,"kind":2048,"name":"destroy","url":"classes/server.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":256,"kind":2048,"name":"addService","url":"classes/server.html#addservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":257,"kind":2048,"name":"removeService","url":"classes/server.html#removeservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Server"},{"id":258,"kind":2048,"name":"addListener","url":"classes/server.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":259,"kind":2048,"name":"removeListener","url":"classes/server.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":260,"kind":2048,"name":"off","url":"classes/server.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":261,"kind":2048,"name":"removeAllListeners","url":"classes/server.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":262,"kind":2048,"name":"setMaxListeners","url":"classes/server.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":263,"kind":2048,"name":"getMaxListeners","url":"classes/server.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":264,"kind":2048,"name":"listeners","url":"classes/server.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":265,"kind":2048,"name":"rawListeners","url":"classes/server.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":266,"kind":2048,"name":"emit","url":"classes/server.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":267,"kind":2048,"name":"listenerCount","url":"classes/server.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":268,"kind":2048,"name":"prependListener","url":"classes/server.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":269,"kind":2048,"name":"prependOnceListener","url":"classes/server.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":270,"kind":2048,"name":"eventNames","url":"classes/server.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Server"},{"id":271,"kind":2048,"name":"once","url":"classes/server.html#once-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static","parent":"Server"},{"id":272,"kind":2048,"name":"on","url":"classes/server.html#on-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":273,"kind":2048,"name":"listenerCount","url":"classes/server.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":274,"kind":2048,"name":"getEventListeners","url":"classes/server.html#geteventlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":275,"kind":1024,"name":"errorMonitor","url":"classes/server.html#errormonitor","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":276,"kind":1024,"name":"captureRejectionSymbol","url":"classes/server.html#capturerejectionsymbol","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":277,"kind":1024,"name":"captureRejections","url":"classes/server.html#capturerejections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":278,"kind":1024,"name":"defaultMaxListeners","url":"classes/server.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Server"},{"id":279,"kind":256,"name":"Abortable","url":"interfaces/server.abortable.html","classes":"tsd-kind-interface tsd-parent-kind-class","parent":"Server"},{"id":280,"kind":1024,"name":"signal","url":"interfaces/server.abortable.html#signal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Server.Abortable"},{"id":281,"kind":128,"name":"RemoteService","url":"classes/remoteservice.html","classes":"tsd-kind-class"},{"id":282,"kind":1024,"name":"name","url":"classes/remoteservice.html#name","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":283,"kind":1024,"name":"type","url":"classes/remoteservice.html#type","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":284,"kind":1024,"name":"subtypes","url":"classes/remoteservice.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":285,"kind":1024,"name":"protocol","url":"classes/remoteservice.html#protocol","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":286,"kind":1024,"name":"domain","url":"classes/remoteservice.html#domain","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":287,"kind":1024,"name":"hostname","url":"classes/remoteservice.html#hostname","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":288,"kind":1024,"name":"port","url":"classes/remoteservice.html#port","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":289,"kind":1024,"name":"txt","url":"classes/remoteservice.html#txt","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":290,"kind":1024,"name":"addresses","url":"classes/remoteservice.html#addresses","classes":"tsd-kind-property tsd-parent-kind-class","parent":"RemoteService"},{"id":291,"kind":512,"name":"constructor","url":"classes/remoteservice.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"RemoteService"},{"id":292,"kind":256,"name":"ListenerOptions","url":"interfaces/listeneroptions.html","classes":"tsd-kind-interface"},{"id":293,"kind":1024,"name":"name","url":"interfaces/listeneroptions.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":294,"kind":1024,"name":"type","url":"interfaces/listeneroptions.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":295,"kind":1024,"name":"protocol","url":"interfaces/listeneroptions.html#protocol","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":296,"kind":1024,"name":"subtypes","url":"interfaces/listeneroptions.html#subtypes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ListenerOptions"},{"id":297,"kind":128,"name":"Listener","url":"classes/listener.html","classes":"tsd-kind-class"},{"id":298,"kind":2048,"name":"on","url":"classes/listener.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Listener"},{"id":299,"kind":2048,"name":"once","url":"classes/listener.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"Listener"},{"id":300,"kind":1024,"name":"server","url":"classes/listener.html#server","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":301,"kind":1024,"name":"remoteServices","url":"classes/listener.html#remoteservices","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":302,"kind":1024,"name":"typeName","url":"classes/listener.html#typename","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":303,"kind":1024,"name":"wildcard","url":"classes/listener.html#wildcard","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":304,"kind":1024,"name":"requeryDelay","url":"classes/listener.html#requerydelay","classes":"tsd-kind-property tsd-parent-kind-class","parent":"Listener"},{"id":305,"kind":512,"name":"constructor","url":"classes/listener.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"Listener"},{"id":306,"kind":2048,"name":"listen","url":"classes/listener.html#listen","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":307,"kind":2048,"name":"query","url":"classes/listener.html#query","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":308,"kind":2048,"name":"requery","url":"classes/listener.html#requery","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":309,"kind":2048,"name":"onResponse","url":"classes/listener.html#onresponse","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":310,"kind":2048,"name":"destroy","url":"classes/listener.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":311,"kind":2048,"name":"addRemoteService","url":"classes/listener.html#addremoteservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":312,"kind":2048,"name":"removeRemoteService","url":"classes/listener.html#removeremoteservice","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":313,"kind":2048,"name":"queryUnresolvedRecords","url":"classes/listener.html#queryunresolvedrecords","classes":"tsd-kind-method tsd-parent-kind-class","parent":"Listener"},{"id":314,"kind":2048,"name":"addListener","url":"classes/listener.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":315,"kind":2048,"name":"removeListener","url":"classes/listener.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":316,"kind":2048,"name":"off","url":"classes/listener.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":317,"kind":2048,"name":"removeAllListeners","url":"classes/listener.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":318,"kind":2048,"name":"setMaxListeners","url":"classes/listener.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":319,"kind":2048,"name":"getMaxListeners","url":"classes/listener.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":320,"kind":2048,"name":"listeners","url":"classes/listener.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":321,"kind":2048,"name":"rawListeners","url":"classes/listener.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":322,"kind":2048,"name":"emit","url":"classes/listener.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":323,"kind":2048,"name":"listenerCount","url":"classes/listener.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":324,"kind":2048,"name":"prependListener","url":"classes/listener.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":325,"kind":2048,"name":"prependOnceListener","url":"classes/listener.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":326,"kind":2048,"name":"eventNames","url":"classes/listener.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"Listener"},{"id":327,"kind":2048,"name":"once","url":"classes/listener.html#once-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":328,"kind":2048,"name":"on","url":"classes/listener.html#on-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":329,"kind":2048,"name":"listenerCount","url":"classes/listener.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":330,"kind":2048,"name":"getEventListeners","url":"classes/listener.html#geteventlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":331,"kind":1024,"name":"errorMonitor","url":"classes/listener.html#errormonitor","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":332,"kind":1024,"name":"captureRejectionSymbol","url":"classes/listener.html#capturerejectionsymbol","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":333,"kind":1024,"name":"captureRejections","url":"classes/listener.html#capturerejections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":334,"kind":1024,"name":"defaultMaxListeners","url":"classes/listener.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"Listener"},{"id":335,"kind":256,"name":"Abortable","url":"interfaces/listener.abortable.html","classes":"tsd-kind-interface tsd-parent-kind-class","parent":"Listener"},{"id":336,"kind":1024,"name":"signal","url":"interfaces/listener.abortable.html#signal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"Listener.Abortable"},{"id":337,"kind":128,"name":"SpreadTheWord","url":"classes/spreadtheword.html","classes":"tsd-kind-class"},{"id":338,"kind":2048,"name":"on","url":"classes/spreadtheword.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"SpreadTheWord"},{"id":339,"kind":2048,"name":"once","url":"classes/spreadtheword.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"SpreadTheWord"},{"id":340,"kind":1024,"name":"server","url":"classes/spreadtheword.html#server","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":341,"kind":1024,"name":"servicesList","url":"classes/spreadtheword.html#serviceslist","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":342,"kind":1024,"name":"listenersList","url":"classes/spreadtheword.html#listenerslist","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":343,"kind":1024,"name":"status","url":"classes/spreadtheword.html#status","classes":"tsd-kind-property tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":344,"kind":2048,"name":"init","url":"classes/spreadtheword.html#init","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":345,"kind":2048,"name":"spread","url":"classes/spreadtheword.html#spread","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":346,"kind":2048,"name":"listen","url":"classes/spreadtheword.html#listen","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":347,"kind":2048,"name":"destroy","url":"classes/spreadtheword.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":348,"kind":2048,"name":"addListener","url":"classes/spreadtheword.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":349,"kind":2048,"name":"removeListener","url":"classes/spreadtheword.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":350,"kind":2048,"name":"off","url":"classes/spreadtheword.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":351,"kind":2048,"name":"removeAllListeners","url":"classes/spreadtheword.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":352,"kind":2048,"name":"setMaxListeners","url":"classes/spreadtheword.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":353,"kind":2048,"name":"getMaxListeners","url":"classes/spreadtheword.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":354,"kind":2048,"name":"listeners","url":"classes/spreadtheword.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":355,"kind":2048,"name":"rawListeners","url":"classes/spreadtheword.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":356,"kind":2048,"name":"emit","url":"classes/spreadtheword.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":357,"kind":2048,"name":"listenerCount","url":"classes/spreadtheword.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":358,"kind":2048,"name":"prependListener","url":"classes/spreadtheword.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":359,"kind":2048,"name":"prependOnceListener","url":"classes/spreadtheword.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":360,"kind":2048,"name":"eventNames","url":"classes/spreadtheword.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":361,"kind":512,"name":"constructor","url":"classes/spreadtheword.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited","parent":"SpreadTheWord"},{"id":362,"kind":2048,"name":"once","url":"classes/spreadtheword.html#once-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":363,"kind":2048,"name":"on","url":"classes/spreadtheword.html#on-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":364,"kind":2048,"name":"listenerCount","url":"classes/spreadtheword.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":365,"kind":2048,"name":"getEventListeners","url":"classes/spreadtheword.html#geteventlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":366,"kind":1024,"name":"errorMonitor","url":"classes/spreadtheword.html#errormonitor","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":367,"kind":1024,"name":"captureRejectionSymbol","url":"classes/spreadtheword.html#capturerejectionsymbol","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":368,"kind":1024,"name":"captureRejections","url":"classes/spreadtheword.html#capturerejections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":369,"kind":1024,"name":"defaultMaxListeners","url":"classes/spreadtheword.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"SpreadTheWord"},{"id":370,"kind":256,"name":"Abortable","url":"interfaces/spreadtheword.abortable.html","classes":"tsd-kind-interface tsd-parent-kind-class","parent":"SpreadTheWord"},{"id":371,"kind":1024,"name":"signal","url":"interfaces/spreadtheword.abortable.html#signal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"SpreadTheWord.Abortable"},{"id":372,"kind":4194304,"name":"StatusType","url":"globals.html#statustype","classes":"tsd-kind-type-alias"},{"id":373,"kind":256,"name":"LocalTransportOptions","url":"interfaces/localtransportoptions.html","classes":"tsd-kind-interface"},{"id":374,"kind":1024,"name":"referrerOptions","url":"interfaces/localtransportoptions.html#referreroptions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LocalTransportOptions"},{"id":375,"kind":1024,"name":"addresses","url":"interfaces/localtransportoptions.html#addresses","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LocalTransportOptions"},{"id":376,"kind":1024,"name":"binaryTXT","url":"interfaces/localtransportoptions.html#binarytxt","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"LocalTransportOptions"},{"id":377,"kind":128,"name":"LocalTransport","url":"classes/localtransport.html","classes":"tsd-kind-class"},{"id":378,"kind":2048,"name":"on","url":"classes/localtransport.html#on","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"LocalTransport"},{"id":379,"kind":2048,"name":"once","url":"classes/localtransport.html#once","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"LocalTransport"},{"id":380,"kind":1024,"name":"options","url":"classes/localtransport.html#options","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":381,"kind":1024,"name":"addresses","url":"classes/localtransport.html#addresses","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":382,"kind":1024,"name":"destroyed","url":"classes/localtransport.html#destroyed","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":383,"kind":1024,"name":"referrer","url":"classes/localtransport.html#referrer","classes":"tsd-kind-property tsd-parent-kind-class","parent":"LocalTransport"},{"id":384,"kind":512,"name":"constructor","url":"classes/localtransport.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"LocalTransport"},{"id":385,"kind":2048,"name":"query","url":"classes/localtransport.html#query","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":386,"kind":2048,"name":"respond","url":"classes/localtransport.html#respond","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":387,"kind":2048,"name":"destroy","url":"classes/localtransport.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":388,"kind":2048,"name":"getAddresses","url":"classes/localtransport.html#getaddresses","classes":"tsd-kind-method tsd-parent-kind-class","parent":"LocalTransport"},{"id":389,"kind":2048,"name":"addListener","url":"classes/localtransport.html#addlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":390,"kind":2048,"name":"removeListener","url":"classes/localtransport.html#removelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":391,"kind":2048,"name":"off","url":"classes/localtransport.html#off","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":392,"kind":2048,"name":"removeAllListeners","url":"classes/localtransport.html#removealllisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":393,"kind":2048,"name":"setMaxListeners","url":"classes/localtransport.html#setmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":394,"kind":2048,"name":"getMaxListeners","url":"classes/localtransport.html#getmaxlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":395,"kind":2048,"name":"listeners","url":"classes/localtransport.html#listeners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":396,"kind":2048,"name":"rawListeners","url":"classes/localtransport.html#rawlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":397,"kind":2048,"name":"emit","url":"classes/localtransport.html#emit","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":398,"kind":2048,"name":"listenerCount","url":"classes/localtransport.html#listenercount","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":399,"kind":2048,"name":"prependListener","url":"classes/localtransport.html#prependlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":400,"kind":2048,"name":"prependOnceListener","url":"classes/localtransport.html#prependoncelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":401,"kind":2048,"name":"eventNames","url":"classes/localtransport.html#eventnames","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"LocalTransport"},{"id":402,"kind":2048,"name":"once","url":"classes/localtransport.html#once-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":403,"kind":2048,"name":"on","url":"classes/localtransport.html#on-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":404,"kind":2048,"name":"listenerCount","url":"classes/localtransport.html#listenercount-1","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":405,"kind":2048,"name":"getEventListeners","url":"classes/localtransport.html#geteventlisteners","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":406,"kind":1024,"name":"errorMonitor","url":"classes/localtransport.html#errormonitor","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":407,"kind":1024,"name":"captureRejectionSymbol","url":"classes/localtransport.html#capturerejectionsymbol","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":408,"kind":1024,"name":"captureRejections","url":"classes/localtransport.html#capturerejections","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":409,"kind":1024,"name":"defaultMaxListeners","url":"classes/localtransport.html#defaultmaxlisteners","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static","parent":"LocalTransport"},{"id":410,"kind":256,"name":"Abortable","url":"interfaces/localtransport.abortable.html","classes":"tsd-kind-interface tsd-parent-kind-class","parent":"LocalTransport"},{"id":411,"kind":1024,"name":"signal","url":"interfaces/localtransport.abortable.html#signal","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"LocalTransport.Abortable"},{"id":412,"kind":64,"name":"toPlainObject","url":"globals.html#toplainobject","classes":"tsd-kind-function"}]}; \ No newline at end of file diff --git a/docs/classes/a.html b/docs/classes/a.html index 6102bd9..f7a3c59 100644 --- a/docs/classes/a.html +++ b/docs/classes/a.html @@ -115,7 +115,7 @@
This symbol shall be used to install a listener for only monitoring 'error'
+ events. Listeners installed using this symbol are called before the regular
+ 'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
+ 'error'
event is emitted, therefore the process will still crash if no
+ regular 'error'
listener is installed.
Alias for emitter.on(eventName, listener)
.
Synchronously calls each of the listeners registered for the event namedeventName
, in the order they were registered, passing the supplied arguments
+ to each.
Returns true
if the event had listeners, false
otherwise.
const EventEmitter = require('events');
+const myEmitter = new EventEmitter();
+
+// First listener
+myEmitter.on('event', function firstListener() {
+ console.log('Helloooo! first listener');
+});
+// Second listener
+myEmitter.on('event', function secondListener(arg1, arg2) {
+ console.log(`event with parameters ${arg1}, ${arg2} in second listener`);
+});
+// Third listener
+myEmitter.on('event', function thirdListener(...args) {
+ const parameters = args.join(', ');
+ console.log(`event with parameters ${parameters} in third listener`);
+});
+
+console.log(myEmitter.listeners('event'));
+
+myEmitter.emit('event', 1, 2, 3, 4, 5);
+
+// Prints:
+// [
+// [Function: firstListener],
+// [Function: secondListener],
+// [Function: thirdListener]
+// ]
+// Helloooo! first listener
+// event with parameters 1, 2 in second listener
+// event with parameters 1, 2, 3, 4, 5 in third listener
+
+ Returns an array listing the events for which the emitter has registered
+ listeners. The values in the array are strings or Symbol
s.
const EventEmitter = require('events');
+const myEE = new EventEmitter();
+myEE.on('foo', () => {});
+myEE.on('bar', () => {});
+
+const sym = Symbol('symbol');
+myEE.on(sym, () => {});
+
+console.log(myEE.eventNames());
+// Prints: [ 'foo', 'bar', Symbol(symbol) ]
+
+ Returns the current max listener value for the EventEmitter
which is either
+ set by emitter.setMaxListeners(n)
or defaults to defaultMaxListeners.
Returns the number of listeners listening to the event named eventName
.
The name of the event being listened for
+Returns a copy of the array of listeners for the event named eventName
.
server.on('connection', (stream) => {
+ console.log('someone connected!');
+});
+console.log(util.inspect(server.listeners('connection')));
+// Prints: [ [Function] ]
+
+ Alias for emitter.removeListener()
.
Adds the listener
function to the beginning of the listeners array for the
+ event named eventName
. No checks are made to see if the listener
has
+ already been added. Multiple calls passing the same combination of eventName
and listener
will result in the listener
being added, and called, multiple
+ times.
server.prependListener('connection', (stream) => {
+ console.log('someone connected!');
+});
+ Returns a reference to the EventEmitter
, so that calls can be chained.
The name of the event.
+The callback function
+Adds a one-timelistener
function for the event named eventName
to the_beginning_ of the listeners array. The next time eventName
is triggered, this
+ listener is removed, and then invoked.
server.prependOnceListener('connection', (stream) => {
+ console.log('Ah, we have our first user!');
+});
+ Returns a reference to the EventEmitter
, so that calls can be chained.
The name of the event.
+The callback function
+Returns a copy of the array of listeners for the event named eventName
,
+ including any wrappers (such as those created by .once()
).
const emitter = new EventEmitter();
+emitter.once('log', () => console.log('log once'));
+
+// Returns a new Array with a function `onceWrapper` which has a property
+// `listener` which contains the original listener bound above
+const listeners = emitter.rawListeners('log');
+const logFnWrapper = listeners[0];
+
+// Logs "log once" to the console and does not unbind the `once` event
+logFnWrapper.listener();
+
+// Logs "log once" to the console and removes the listener
+logFnWrapper();
+
+emitter.on('log', () => console.log('log persistently'));
+// Will return a new Array with a single function bound by `.on()` above
+const newListeners = emitter.rawListeners('log');
+
+// Logs "log persistently" twice
+newListeners[0]();
+emitter.emit('log');
+
+ Removes all listeners, or those of the specified eventName
.
It is bad practice to remove listeners added elsewhere in the code,
+ particularly when the EventEmitter
instance was created by some other
+ component or module (e.g. sockets or file streams).
Returns a reference to the EventEmitter
, so that calls can be chained.
Removes the specified listener
from the listener array for the event namedeventName
.
const callback = (stream) => {
+ console.log('someone connected!');
+};
+server.on('connection', callback);
+// ...
+server.removeListener('connection', callback);
+ removeListener()
will remove, at most, one instance of a listener from the
+ listener array. If any single listener has been added multiple times to the
+ listener array for the specified eventName
, then removeListener()
must be
+ called multiple times to remove each instance.
Once an event is emitted, all listeners attached to it at the
+ time of emitting are called in order. This implies that anyremoveListener()
or removeAllListeners()
calls after emitting and_before_ the last listener finishes execution will
+ not remove them fromemit()
in progress. Subsequent events behave as expected.
const myEmitter = new MyEmitter();
+
+const callbackA = () => {
+ console.log('A');
+ myEmitter.removeListener('event', callbackB);
+};
+
+const callbackB = () => {
+ console.log('B');
+};
+
+myEmitter.on('event', callbackA);
+
+myEmitter.on('event', callbackB);
+
+// callbackA removes listener callbackB but it will still be called.
+// Internal listener array at time of emit [callbackA, callbackB]
+myEmitter.emit('event');
+// Prints:
+// A
+// B
+
+// callbackB is now removed.
+// Internal listener array [callbackA]
+myEmitter.emit('event');
+// Prints:
+// A
+ Because listeners are managed using an internal array, calling this will
+ change the position indices of any listener registered after the listener
+ being removed. This will not impact the order in which listeners are called,
+ but it means that any copies of the listener array as returned by
+ the emitter.listeners()
method will need to be recreated.
When a single function has been added as a handler multiple times for a single
+ event (as in the example below), removeListener()
will remove the most
+ recently added instance. In the example the once('ping')
listener is removed:
const ee = new EventEmitter();
+
+function pong() {
+ console.log('pong');
+}
+
+ee.on('ping', pong);
+ee.once('ping', pong);
+ee.removeListener('ping', pong);
+
+ee.emit('ping');
+ee.emit('ping');
+ Returns a reference to the EventEmitter
, so that calls can be chained.
By default EventEmitter
s will print a warning if more than 10
listeners are
+ added for a particular event. This is a useful default that helps finding
+ memory leaks. The emitter.setMaxListeners()
method allows the limit to be
+ modified for this specific EventEmitter
instance. The value can be set toInfinity
(or 0
) to indicate an unlimited number of listeners.
Returns a reference to the EventEmitter
, so that calls can be chained.
Returns a copy of the array of listeners for the event named eventName
.
For EventEmitter
s this behaves exactly the same as calling .listeners
on
+ the emitter.
For EventTarget
s this is the only way to get the event listeners for the
+ event target. This is useful for debugging and diagnostic purposes.
const { getEventListeners, EventEmitter } = require('events');
+
+{
+ const ee = new EventEmitter();
+ const listener = () => console.log('Events are fun');
+ ee.on('foo', listener);
+ getEventListeners(ee, 'foo'); // [listener]
+}
+{
+ const et = new EventTarget();
+ const listener = () => console.log('Events are fun');
+ et.addEventListener('foo', listener);
+ getEventListeners(et, 'foo'); // [listener]
+}
+
+ A class method that returns the number of listeners for the given eventName
registered on the given emitter
.
const { EventEmitter, listenerCount } = require('events');
+const myEmitter = new EventEmitter();
+myEmitter.on('event', () => {});
+myEmitter.on('event', () => {});
+console.log(listenerCount(myEmitter, 'event'));
+// Prints: 2
+
+ The emitter to query
+The event name
+```js + const { on, EventEmitter } = require('events');
+(async () => { + const ee = new EventEmitter();
+// Emit later on + process.nextTick(() => { + ee.emit('foo', 'bar'); + ee.emit('foo', 42); + });
+for await (const event of on(ee, 'foo')) { + // The execution of this inner block is synchronous and it + // processes one event at a time (even with await). Do not use + // if concurrent execution is required. + console.log(event); // prints ['bar'] [42] + } + // Unreachable here + })();
+
+Returns an `AsyncIterator` that iterates `eventName` events. It will throw
+if the `EventEmitter` emits `'error'`. It removes all listeners when
+exiting the loop. The `value` returned by each iteration is an array
+composed of the emitted event arguments.
+
+An `AbortSignal` can be used to cancel waiting on events:
+
+```js
+const { on, EventEmitter } = require('events');
+const ac = new AbortController();
+
+(async () => {
+ const ee = new EventEmitter();
+
+ // Emit later on
+ process.nextTick(() => {
+ ee.emit('foo', 'bar');
+ ee.emit('foo', 42);
+ });
+
+ for await (const event of on(ee, 'foo', { signal: ac.signal })) {
+ // The execution of this inner block is synchronous and it
+ // processes one event at a time (even with await). Do not use
+ // if concurrent execution is required.
+ console.log(event); // prints ['bar'] [42]
+ }
+ // Unreachable here
+})();
+
+process.nextTick(() => ac.abort());
+
+ The name of the event being listened for
+that iterates eventName
events emitted by the emitter
Creates a Promise
that is fulfilled when the EventEmitter
emits the given
+ event or that is rejected if the EventEmitter
emits 'error'
while waiting.
+ The Promise
will resolve with an array of all the arguments emitted to the
+ given event.
This method is intentionally generic and works with the web platformEventTarget interface, which has no special'error'
event
+ semantics and does not listen to the 'error'
event.
const { once, EventEmitter } = require('events');
+
+async function run() {
+ const ee = new EventEmitter();
+
+ process.nextTick(() => {
+ ee.emit('myevent', 42);
+ });
+
+ const [value] = await once(ee, 'myevent');
+ console.log(value);
+
+ const err = new Error('kaboom');
+ process.nextTick(() => {
+ ee.emit('error', err);
+ });
+
+ try {
+ await once(ee, 'myevent');
+ } catch (err) {
+ console.log('error happened', err);
+ }
+}
+
+run();
+ The special handling of the 'error'
event is only used when events.once()
is used to wait for another event. If events.once()
is used to wait for the
+ 'error'
event itself, then it is treated as any other kind of event without
+ special handling:
const { EventEmitter, once } = require('events');
+
+const ee = new EventEmitter();
+
+once(ee, 'error')
+ .then(([err]) => console.log('ok', err.message))
+ .catch((err) => console.log('error', err.message));
+
+ee.emit('error', new Error('boom'));
+
+// Prints: ok boom
+ An AbortSignal
can be used to cancel waiting for the event:
const { EventEmitter, once } = require('events');
+
+const ee = new EventEmitter();
+const ac = new AbortController();
+
+async function foo(emitter, event, signal) {
+ try {
+ await once(emitter, event, { signal });
+ console.log('event emitted!');
+ } catch (error) {
+ if (error.name === 'AbortError') {
+ console.error('Waiting for the event was canceled!');
+ } else {
+ console.error('There was an error', error.message);
+ }
+ }
+}
+
+foo(ee, 'foo', ac.signal);
+ac.abort(); // Abort waiting for the event
+ee.emit('foo'); // Prints: Waiting for the event was canceled!
+
+ When provided the corresponding AbortController
can be used to cancel an asynchronous action.
When provided the corresponding AbortController
can be used to cancel an asynchronous action.
When provided the corresponding AbortController
can be used to cancel an asynchronous action.
Sets or gets the default captureRejection value for all emitters.
+This symbol shall be used to install a listener for only monitoring 'error'
+ events. Listeners installed using this symbol are called before the regular
+ 'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
+ 'error'
event is emitted, therefore the process will still crash if no
+ regular 'error'
listener is installed.
Alias for emitter.on(eventName, listener)
.
Synchronously calls each of the listeners registered for the event namedeventName
, in the order they were registered, passing the supplied arguments
+ to each.
Returns true
if the event had listeners, false
otherwise.
const EventEmitter = require('events');
+const myEmitter = new EventEmitter();
+
+// First listener
+myEmitter.on('event', function firstListener() {
+ console.log('Helloooo! first listener');
+});
+// Second listener
+myEmitter.on('event', function secondListener(arg1, arg2) {
+ console.log(`event with parameters ${arg1}, ${arg2} in second listener`);
+});
+// Third listener
+myEmitter.on('event', function thirdListener(...args) {
+ const parameters = args.join(', ');
+ console.log(`event with parameters ${parameters} in third listener`);
+});
+
+console.log(myEmitter.listeners('event'));
+
+myEmitter.emit('event', 1, 2, 3, 4, 5);
+
+// Prints:
+// [
+// [Function: firstListener],
+// [Function: secondListener],
+// [Function: thirdListener]
+// ]
+// Helloooo! first listener
+// event with parameters 1, 2 in second listener
+// event with parameters 1, 2, 3, 4, 5 in third listener
+
+ Returns an array listing the events for which the emitter has registered
+ listeners. The values in the array are strings or Symbol
s.
const EventEmitter = require('events');
+const myEE = new EventEmitter();
+myEE.on('foo', () => {});
+myEE.on('bar', () => {});
+
+const sym = Symbol('symbol');
+myEE.on(sym, () => {});
+
+console.log(myEE.eventNames());
+// Prints: [ 'foo', 'bar', Symbol(symbol) ]
+
+ Returns the current max listener value for the EventEmitter
which is either
+ set by emitter.setMaxListeners(n)
or defaults to defaultMaxListeners.
Returns the number of listeners listening to the event named eventName
.
The name of the event being listened for
+Returns a copy of the array of listeners for the event named eventName
.
server.on('connection', (stream) => {
+ console.log('someone connected!');
+});
+console.log(util.inspect(server.listeners('connection')));
+// Prints: [ [Function] ]
+
+ Alias for emitter.removeListener()
.
Adds the listener
function to the end of the listeners array for the
+ event named eventName
. No checks are made to see if the listener
has
+ already been added. Multiple calls passing the same combination of eventName
and listener
will result in the listener
being added, and called, multiple
+ times.
server.on('connection', (stream) => {
+ console.log('someone connected!');
+});
+ Returns a reference to the EventEmitter
, so that calls can be chained.
By default, event listeners are invoked in the order they are added. Theemitter.prependListener()
method can be used as an alternative to add the
+ event listener to the beginning of the listeners array.
const myEE = new EventEmitter();
+myEE.on('foo', () => console.log('a'));
+myEE.prependListener('foo', () => console.log('b'));
+myEE.emit('foo');
+// Prints:
+// b
+// a
+
+ The name of the event.
+The callback function
+Adds a one-timelistener
function for the event named eventName
. The
+ next time eventName
is triggered, this listener is removed and then invoked.
server.once('connection', (stream) => {
+ console.log('Ah, we have our first user!');
+});
+ Returns a reference to the EventEmitter
, so that calls can be chained.
By default, event listeners are invoked in the order they are added. Theemitter.prependOnceListener()
method can be used as an alternative to add the
+ event listener to the beginning of the listeners array.
const myEE = new EventEmitter();
+myEE.once('foo', () => console.log('a'));
+myEE.prependOnceListener('foo', () => console.log('b'));
+myEE.emit('foo');
+// Prints:
+// b
+// a
+
+ The name of the event.
+The callback function
+Adds the listener
function to the beginning of the listeners array for the
+ event named eventName
. No checks are made to see if the listener
has
+ already been added. Multiple calls passing the same combination of eventName
and listener
will result in the listener
being added, and called, multiple
+ times.
server.prependListener('connection', (stream) => {
+ console.log('someone connected!');
+});
+ Returns a reference to the EventEmitter
, so that calls can be chained.
The name of the event.
+The callback function
+Adds a one-timelistener
function for the event named eventName
to the_beginning_ of the listeners array. The next time eventName
is triggered, this
+ listener is removed, and then invoked.
server.prependOnceListener('connection', (stream) => {
+ console.log('Ah, we have our first user!');
+});
+ Returns a reference to the EventEmitter
, so that calls can be chained.
The name of the event.
+The callback function
+Returns a copy of the array of listeners for the event named eventName
,
+ including any wrappers (such as those created by .once()
).
const emitter = new EventEmitter();
+emitter.once('log', () => console.log('log once'));
+
+// Returns a new Array with a function `onceWrapper` which has a property
+// `listener` which contains the original listener bound above
+const listeners = emitter.rawListeners('log');
+const logFnWrapper = listeners[0];
+
+// Logs "log once" to the console and does not unbind the `once` event
+logFnWrapper.listener();
+
+// Logs "log once" to the console and removes the listener
+logFnWrapper();
+
+emitter.on('log', () => console.log('log persistently'));
+// Will return a new Array with a single function bound by `.on()` above
+const newListeners = emitter.rawListeners('log');
+
+// Logs "log persistently" twice
+newListeners[0]();
+emitter.emit('log');
+
+ Removes all listeners, or those of the specified eventName
.
It is bad practice to remove listeners added elsewhere in the code,
+ particularly when the EventEmitter
instance was created by some other
+ component or module (e.g. sockets or file streams).
Returns a reference to the EventEmitter
, so that calls can be chained.
Removes the specified listener
from the listener array for the event namedeventName
.
const callback = (stream) => {
+ console.log('someone connected!');
+};
+server.on('connection', callback);
+// ...
+server.removeListener('connection', callback);
+ removeListener()
will remove, at most, one instance of a listener from the
+ listener array. If any single listener has been added multiple times to the
+ listener array for the specified eventName
, then removeListener()
must be
+ called multiple times to remove each instance.
Once an event is emitted, all listeners attached to it at the
+ time of emitting are called in order. This implies that anyremoveListener()
or removeAllListeners()
calls after emitting and_before_ the last listener finishes execution will
+ not remove them fromemit()
in progress. Subsequent events behave as expected.
const myEmitter = new MyEmitter();
+
+const callbackA = () => {
+ console.log('A');
+ myEmitter.removeListener('event', callbackB);
+};
+
+const callbackB = () => {
+ console.log('B');
+};
+
+myEmitter.on('event', callbackA);
+
+myEmitter.on('event', callbackB);
+
+// callbackA removes listener callbackB but it will still be called.
+// Internal listener array at time of emit [callbackA, callbackB]
+myEmitter.emit('event');
+// Prints:
+// A
+// B
+
+// callbackB is now removed.
+// Internal listener array [callbackA]
+myEmitter.emit('event');
+// Prints:
+// A
+ Because listeners are managed using an internal array, calling this will
+ change the position indices of any listener registered after the listener
+ being removed. This will not impact the order in which listeners are called,
+ but it means that any copies of the listener array as returned by
+ the emitter.listeners()
method will need to be recreated.
When a single function has been added as a handler multiple times for a single
+ event (as in the example below), removeListener()
will remove the most
+ recently added instance. In the example the once('ping')
listener is removed:
const ee = new EventEmitter();
+
+function pong() {
+ console.log('pong');
+}
+
+ee.on('ping', pong);
+ee.once('ping', pong);
+ee.removeListener('ping', pong);
+
+ee.emit('ping');
+ee.emit('ping');
+ Returns a reference to the EventEmitter
, so that calls can be chained.
By default EventEmitter
s will print a warning if more than 10
listeners are
+ added for a particular event. This is a useful default that helps finding
+ memory leaks. The emitter.setMaxListeners()
method allows the limit to be
+ modified for this specific EventEmitter
instance. The value can be set toInfinity
(or 0
) to indicate an unlimited number of listeners.
Returns a reference to the EventEmitter
, so that calls can be chained.
Returns a copy of the array of listeners for the event named eventName
.
For EventEmitter
s this behaves exactly the same as calling .listeners
on
+ the emitter.
For EventTarget
s this is the only way to get the event listeners for the
+ event target. This is useful for debugging and diagnostic purposes.
const { getEventListeners, EventEmitter } = require('events');
+
+{
+ const ee = new EventEmitter();
+ const listener = () => console.log('Events are fun');
+ ee.on('foo', listener);
+ getEventListeners(ee, 'foo'); // [listener]
+}
+{
+ const et = new EventTarget();
+ const listener = () => console.log('Events are fun');
+ et.addEventListener('foo', listener);
+ getEventListeners(et, 'foo'); // [listener]
+}
+
+ A class method that returns the number of listeners for the given eventName
registered on the given emitter
.
const { EventEmitter, listenerCount } = require('events');
+const myEmitter = new EventEmitter();
+myEmitter.on('event', () => {});
+myEmitter.on('event', () => {});
+console.log(listenerCount(myEmitter, 'event'));
+// Prints: 2
+
+ The emitter to query
+The event name
+```js + const { on, EventEmitter } = require('events');
+(async () => { + const ee = new EventEmitter();
+// Emit later on + process.nextTick(() => { + ee.emit('foo', 'bar'); + ee.emit('foo', 42); + });
+for await (const event of on(ee, 'foo')) { + // The execution of this inner block is synchronous and it + // processes one event at a time (even with await). Do not use + // if concurrent execution is required. + console.log(event); // prints ['bar'] [42] + } + // Unreachable here + })();
+
+Returns an `AsyncIterator` that iterates `eventName` events. It will throw
+if the `EventEmitter` emits `'error'`. It removes all listeners when
+exiting the loop. The `value` returned by each iteration is an array
+composed of the emitted event arguments.
+
+An `AbortSignal` can be used to cancel waiting on events:
+
+```js
+const { on, EventEmitter } = require('events');
+const ac = new AbortController();
+
+(async () => {
+ const ee = new EventEmitter();
+
+ // Emit later on
+ process.nextTick(() => {
+ ee.emit('foo', 'bar');
+ ee.emit('foo', 42);
+ });
+
+ for await (const event of on(ee, 'foo', { signal: ac.signal })) {
+ // The execution of this inner block is synchronous and it
+ // processes one event at a time (even with await). Do not use
+ // if concurrent execution is required.
+ console.log(event); // prints ['bar'] [42]
+ }
+ // Unreachable here
+})();
+
+process.nextTick(() => ac.abort());
+
+ The name of the event being listened for
+that iterates eventName
events emitted by the emitter
Creates a Promise
that is fulfilled when the EventEmitter
emits the given
+ event or that is rejected if the EventEmitter
emits 'error'
while waiting.
+ The Promise
will resolve with an array of all the arguments emitted to the
+ given event.
This method is intentionally generic and works with the web platformEventTarget interface, which has no special'error'
event
+ semantics and does not listen to the 'error'
event.
const { once, EventEmitter } = require('events');
+
+async function run() {
+ const ee = new EventEmitter();
+
+ process.nextTick(() => {
+ ee.emit('myevent', 42);
+ });
+
+ const [value] = await once(ee, 'myevent');
+ console.log(value);
+
+ const err = new Error('kaboom');
+ process.nextTick(() => {
+ ee.emit('error', err);
+ });
+
+ try {
+ await once(ee, 'myevent');
+ } catch (err) {
+ console.log('error happened', err);
+ }
+}
+
+run();
+ The special handling of the 'error'
event is only used when events.once()
is used to wait for another event. If events.once()
is used to wait for the
+ 'error'
event itself, then it is treated as any other kind of event without
+ special handling:
const { EventEmitter, once } = require('events');
+
+const ee = new EventEmitter();
+
+once(ee, 'error')
+ .then(([err]) => console.log('ok', err.message))
+ .catch((err) => console.log('error', err.message));
+
+ee.emit('error', new Error('boom'));
+
+// Prints: ok boom
+ An AbortSignal
can be used to cancel waiting for the event:
const { EventEmitter, once } = require('events');
+
+const ee = new EventEmitter();
+const ac = new AbortController();
+
+async function foo(emitter, event, signal) {
+ try {
+ await once(emitter, event, { signal });
+ console.log('event emitted!');
+ } catch (error) {
+ if (error.name === 'AbortError') {
+ console.error('Waiting for the event was canceled!');
+ } else {
+ console.error('There was an error', error.message);
+ }
+ }
+}
+
+foo(ee, 'foo', ac.signal);
+ac.abort(); // Abort waiting for the event
+ee.emit('foo'); // Prints: Waiting for the event was canceled!
+
+
Sets or gets the default captureRejection value for all emitters.
+