@klippa/nativescript-http
Version:
The best way to do HTTP requests in NativeScript, a drop-in replacement for the core HTTP with important improvements and additions like proper connection pooling, form data support and certificate pinning
10 lines (8 loc) • 596 B
TypeScript
import {IWebsocketConnection, WebsocketCallbacks} from "./websocket.common";
export {IWebsocketConnection, WebsocketCallbacks} from "./websocket.common";
/**
* Create a new websocket connection.
* @param options The request options with the URL to the websocket (with ws:// or wss:// protocol). Only the options url, headers and dontFollowRedirects are used.
* @param callbacks A class that implements the different callbacks of WebsocketCallbacks.
*/
export declare function newWebsocketConnection(options: HttpRequestOptions, callbacks: WebsocketCallbacks): Promise<IWebsocketConnection>;