Skip to content

Commit 64fc000

Browse files
authored
Update index.d.ts (#1037)
1 parent 6d06ede commit 64fc000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/index.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export interface WebSocketBehavior<UserData> {
229229
/** Maximum length of received message. If a client tries to send you a message larger than this, the connection is immediately closed. Defaults to 16 * 1024. */
230230
maxPayloadLength?: number;
231231
/** Whether or not we should automatically close the socket when a message is dropped due to backpressure. Defaults to false. */
232-
closeOnBackpressureLimit?: number;
232+
closeOnBackpressureLimit?: boolean;
233233
/** Maximum number of minutes a WebSocket may be connected before being closed by the server. 0 disables the feature. */
234234
maxLifetime?: number;
235235
/** Maximum amount of seconds that may pass without sending or getting a message. Connection is closed if this timeout passes. Resolution (granularity) for timeouts are typically 4 seconds, rounded to closest.

0 commit comments

Comments
 (0)