Document v16.1.0

This commit is contained in:
Alex Hultman 2019-10-17 02:29:12 +02:00
parent 97bff11ba0
commit 708afd7d27
13 changed files with 123 additions and 80 deletions

2
docs/index.d.ts vendored
View file

@ -153,6 +153,8 @@ interface TemplatedApp {
any(pattern: RecognizedString, handler: (res: HttpResponse, req: HttpRequest) => void) : TemplatedApp;
/** Registers a handler matching specified URL pattern where WebSocket upgrade requests are caught. */
ws(pattern: RecognizedString, behavior: WebSocketBehavior) : TemplatedApp;
/** Publishes a message under topic, for all WebSockets under this app. See WebSocket.publish. */
publish(topic: RecognizedString, message: RecognizedString, isBinary?: boolean, compress?: boolean) : TemplatedApp;
}
/** Constructs a non-SSL app */