nativescript-zeroconf
Version:
Zeroconf/Bonjour implementation for NativeScript
17 lines (16 loc) • 502 B
TypeScript
import { Observable } from 'tns-core-modules/data/observable';
export declare class Common extends Observable {
protected serviceType: string;
constructor(serviceType: string);
startServiceDiscovery(): void;
stopServiceDiscovery(): void;
protected onServiceFound(service: any): void;
protected onServiceLost(service: any): void;
}
export interface ZeroconfService {
'name': string;
'type': string;
'host'?: string;
'addr'?: Array<string>;
'port'?: number;
}