|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
863 bytes
|
| Line | |
|---|
| 1 | import KeyValue from './KeyValue';
|
|---|
| 2 | import { EventEmitter } from 'events';
|
|---|
| 3 | import Service from './service';
|
|---|
| 4 | export interface BrowserConfig {
|
|---|
| 5 | type: string;
|
|---|
| 6 | name?: string;
|
|---|
| 7 | protocol?: 'tcp' | 'udp';
|
|---|
| 8 | subtypes?: string[];
|
|---|
| 9 | txt?: KeyValue;
|
|---|
| 10 | }
|
|---|
| 11 | export type BrowserOnUp = (service: Service) => void;
|
|---|
| 12 | export declare class Browser extends EventEmitter {
|
|---|
| 13 | private mdns;
|
|---|
| 14 | private onresponse;
|
|---|
| 15 | private serviceMap;
|
|---|
| 16 | private txt;
|
|---|
| 17 | private name?;
|
|---|
| 18 | private txtQuery;
|
|---|
| 19 | private wildcard;
|
|---|
| 20 | private _services;
|
|---|
| 21 | constructor(mdns: any, opts: BrowserConfig | BrowserOnUp | null, onup?: BrowserOnUp);
|
|---|
| 22 | start(): void;
|
|---|
| 23 | stop(): void;
|
|---|
| 24 | update(): void;
|
|---|
| 25 | get services(): Service[];
|
|---|
| 26 | private addService;
|
|---|
| 27 | private updateService;
|
|---|
| 28 | private removeService;
|
|---|
| 29 | private goodbyes;
|
|---|
| 30 | private buildServicesFor;
|
|---|
| 31 | }
|
|---|
| 32 | export default Browser;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.