UNPKG

@iotize/device-com-socket.node

Version:

Socket communication protocol to communicate with an iotize

12 lines (11 loc) 509 B
/// <reference types="node" /> import * as net from 'net'; import { Subject, Observable } from 'rxjs'; import { ClientAdapterInterface, ServerAdapterInterface, RelayServerOptions } from '@iotize/tap/relay/api'; export declare class ServerAdapter implements ServerAdapterInterface { _server?: net.Server; _connections?: Subject<ClientAdapterInterface>; listen(options: RelayServerOptions): Promise<any>; connections(): Observable<ClientAdapterInterface>; stop(): Promise<any>; }