@iotize/device-com-socket.node
Version:
Socket communication protocol to communicate with an iotize
30 lines (29 loc) • 932 B
TypeScript
import { DeviceScanner } from '@iotize/tap/scanner/api';
import bonjour from 'bonjour';
import { Observable } from 'rxjs';
export declare type NetworkServiceType = bonjour.RemoteService & {
addresses?: string[];
};
/**
* Scanner to discover Taps on your Network
*/
export declare class NetworkServiceDiscovery implements DeviceScanner<NetworkServiceType> {
options: {
type: string;
};
readonly _bonjour: bonjour.Bonjour;
private _results;
private _scanning;
private _resultCache;
get scanning(): Observable<boolean>;
get isScanning(): boolean;
get results(): Observable<NetworkServiceType[]>;
get currentResults(): readonly NetworkServiceType[];
private _browser?;
constructor(options?: {
type: string;
}, _bonjour?: bonjour.Bonjour);
get services(): Observable<any>;
start(): Promise<void>;
stop(): Promise<void>;
}