Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(dotnet): make WebSocketRoute.onClose.handler 'reason' nullable (#36104)

Max Schmitt64e2b5989ea7
diff --git a/docs/src/api/class-websocketroute.md b/docs/src/api/class-websocketroute.md
index e23316ebcb..3328c7df1d 100644
--- a/docs/src/api/class-websocketroute.md
+++ b/docs/src/api/class-websocketroute.md
@@ -333,7 +333,7 @@ Function that will handle WebSocket closure. Received an optional [close code](h
### param: WebSocketRoute.onClose.handler
* since: v1.48
* langs: csharp
-- `handler` <[function]\([int?], [string]\)>
+- `handler` <[function]\([int?], [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).