From 301b0fd2e70cbc9ce2c28b1053c66814d1627355 Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Tue, 14 May 2024 18:42:33 -0400 Subject: [PATCH] Add missing code and reason to WebSocket docs (#10669) --- docs/api/websockets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/websockets.md b/docs/api/websockets.md index 0b3968d330eac4..a14290fd07689a 100644 --- a/docs/api/websockets.md +++ b/docs/api/websockets.md @@ -321,7 +321,7 @@ namespace Bun { message: string | ArrayBuffer | Uint8Array, ) => void; open?: (ws: ServerWebSocket) => void; - close?: (ws: ServerWebSocket) => void; + close?: (ws: ServerWebSocket, code: number, reason: string) => void; error?: (ws: ServerWebSocket, error: Error) => void; drain?: (ws: ServerWebSocket) => void;