Skip to content

Commit

Permalink
Add missing code and reason to WebSocket docs (#10669)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleSeo authored May 14, 2024
1 parent 60482b6 commit 301b0fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/websockets.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 301b0fd

Please sign in to comment.