UNPKG

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.

21 lines (20 loc) 927 B
import type { FastifyInstance } from 'fastify'; import type { ServerOptions } from '../utils/config/cli-options'; import WebSocket from 'ws'; /** * Creates a new Fastify instance * @param options * @returns */ export declare function createHttpServer(options: ServerOptions): FastifyInstance<import("fastify").RawServerDefault, import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>; /** * Creates a new WebSocket server on top of an fastify instance * @param instance */ export declare function createWsServer({ server }: FastifyInstance): WebSocket.Server<typeof WebSocket, typeof import("http").IncomingMessage>; /** * Get the proper websocket url, depending on https server options * @param options * @return url */ export declare function getWebsocketUrl(options: ServerOptions): string;