dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
15 lines (14 loc) • 579 B
TypeScript
import WebSocket from 'ws';
/**
* Listens to the socket connection and stores the socket for later use
* @param wss The WebSocket Server
*/
export declare function socketListener(wss: WebSocket.Server, onConnect: () => void): void;
/**
* Sends messages to the WebSocket with specific type and executes callback
*/
export declare function sendMessage(
/** Type of message: reload - triggers reload; error - shows errors in browser; everything else just gets logged in the browser */
type: 'reload' | 'error' | undefined,
/** Message sent over ws */
message?: string): void;