From 1054930edd066847d2a6a2e1fa9b9164855d3f6c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 2 Oct 2024 13:30:41 +0200 Subject: [PATCH] cherry-pick(#32924): docs: fix Java/.NET types for docs rolling --- docs/src/api/class-websocketroute.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/src/api/class-websocketroute.md b/docs/src/api/class-websocketroute.md index d2fd7cb2ebe17..e5347b07b1448 100644 --- a/docs/src/api/class-websocketroute.md +++ b/docs/src/api/class-websocketroute.md @@ -255,10 +255,17 @@ By default, closing one side of the connection, either in the page or on the ser ### param: WebSocketRoute.onClose.handler * since: v1.48 +* langs: js, python - `handler` <[function]\([number]|[undefined], [string]|[undefined]\): [Promise|any]> Function that will handle WebSocket closure. Received an optional [close code](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#code) and an optional [close reason](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#reason). +### param: WebSocketRoute.onClose.handler +* since: v1.48 +* langs: java, csharp +- `handler` <[function]\([null]|[number], [null]|[string]\)> + +Function that will handle WebSocket closure. Received an optional [close code](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#code) and an optional [close reason](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close#reason). ## async method: WebSocketRoute.onMessage