UNPKG

@iotize/device-client.js

Version:

IoTize Device client for Javascript

22 lines (21 loc) 532 B
import { RelayServerOptions } from "./relay-server.interface"; import { Observable } from "rxjs"; import { ClientAdapterInterface } from "./client-adapter.interface"; /** * */ export interface ServerAdapterInterface { /** * Start listening for new client connection * @param options */ listen(options: RelayServerOptions): Promise<any>; /** * Clients */ connections(): Observable<ClientAdapterInterface>; /** * Stop server */ stop(): Promise<any>; }