UNPKG

aws-crt

Version:

NodeJS bindings to the aws-c-* libraries

17 lines (16 loc) 558 B
import { MqttConnectionConfig } from "./mqtt"; import WebsocketStream = require("websocket-stream"); export interface WebsocketOptions { headers?: { [index: string]: string; }; protocol?: string; } export interface AWSCredentials { aws_region?: string; aws_access_id: string; aws_secret_key: string; aws_sts_token?: string; } export declare function create_websocket_url(config: MqttConnectionConfig): string; export declare function create_websocket_stream(config: MqttConnectionConfig): WebsocketStream.WebSocketDuplex;