Document v16.1.0
This commit is contained in:
parent
97bff11ba0
commit
708afd7d27
13 changed files with 123 additions and 80 deletions
2
docs/index.d.ts
vendored
2
docs/index.d.ts
vendored
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue