Document ping/pong
This commit is contained in:
parent
f9c3cf48a5
commit
7064cf71aa
9 changed files with 158 additions and 74 deletions
4
docs/index.d.ts
vendored
4
docs/index.d.ts
vendored
|
@ -139,6 +139,10 @@ export interface WebSocketBehavior {
|
|||
drain?: (ws: WebSocket) => void;
|
||||
/** Handler for close event, no matter if error, timeout or graceful close. You may not use WebSocket after this event. */
|
||||
close?: (ws: WebSocket, code: number, message: ArrayBuffer) => void;
|
||||
/** Handler for received ping control message. */
|
||||
ping?: (ws: WebSocket) => void;
|
||||
/** Handler for received pong control message. */
|
||||
pong?: (ws: WebSocket) => void;
|
||||
}
|
||||
|
||||
/** Options used when constructing an app. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue