From a84c61393b19f25a5f14232a4368d57a3e562d10 Mon Sep 17 00:00:00 2001 From: joshxyzhimself <60829711+joshxyzhimself@users.noreply.github.com> Date: Fri, 11 Jun 2021 17:03:34 +0800 Subject: [PATCH] Update index.d.ts (#549) Add addServerName, removeServerName, missingServerName --- docs/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/index.d.ts b/docs/index.d.ts index 191fa86..fc3f393 100644 --- a/docs/index.d.ts +++ b/docs/index.d.ts @@ -306,6 +306,12 @@ export interface TemplatedApp { publish(topic: RecognizedString, message: RecognizedString, isBinary?: boolean, compress?: boolean) : boolean; /** Returns number of subscribers for this topic. */ numSubscribers(topic: RecognizedString) : number; + /** Adds a server name. */ + addServerName(hostname: string, options: AppOptions): TemplatedApp; + /** Removes a server name. */ + removeServerName(hostname: string): TemplatedApp; + /** Registers a synchronous callback on missing server names. See /examples/ServerName.js. */ + missingServerName(cb: (hostname: string) => void): TemplatedApp; } /** Constructs a non-SSL app. An app is your starting point where you attach behavior to URL routes.