Skip to content

Commit

Permalink
fix(server): Close code and reason are optional for close (enisdenj…
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Aug 5, 2024
1 parent 63881c3 commit aa07558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export interface WebSocket {
* The returned promise is used to control the graceful
* closure.
*/
close(code: number, reason: string): Promise<void> | void;
close(code?: number, reason?: string): Promise<void> | void;
/**
* Called when message is received. The library requires the data
* to be a `string`.
Expand Down

0 comments on commit aa07558

Please sign in to comment.