UNPKG

@eclipse-ditto/ditto-javascript-client-node

Version:

Node.js(r) implementation of Eclipse Ditto JavaScript API.

37 lines 1.59 kB
/*! * Copyright (c) 2019 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 */ import { HttpBuilderInitialStep } from '../../api/src/client/http-client-builder'; import { WebSocketBuilderInitialStep } from '../../api/src/client/websocket-client-builder'; import { ProxyOptions } from './proxy-settings'; /** * Starting point to build clients that can be used to get handles for NodeJS. */ export declare class DittoNodeClient { /** * Returns a mutable builder with a fluent API for creating a Http-Ditto-Client. * The returned builder utilizes *Object scoping* to guide you through the building process. * * @param proxyOptions - Options to establish a proxy connection. * @return the builder. */ static newHttpClient(proxyOptions?: ProxyOptions): HttpBuilderInitialStep; /** * Returns a mutable builder with a fluent API for creating a Web-Socket-Ditto-Client. * The returned builder utilizes *Object scoping* to guide you through the building process. * * @param proxyOptions - Options to establish a proxy connection. * @return the builder. */ static newWebSocketClient(proxyOptions?: ProxyOptions): WebSocketBuilderInitialStep; } //# sourceMappingURL=ditto-node-client.d.ts.map