@cloudflare/workers-types 4.20260310.1 → 4.20260312.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2021-11-03/index.d.ts +11 -1
- package/2021-11-03/index.ts +11 -1
- package/2022-01-31/index.d.ts +11 -1
- package/2022-01-31/index.ts +11 -1
- package/2022-03-21/index.d.ts +11 -1
- package/2022-03-21/index.ts +11 -1
- package/2022-08-04/index.d.ts +11 -1
- package/2022-08-04/index.ts +11 -1
- package/2022-10-31/index.d.ts +11 -1
- package/2022-10-31/index.ts +11 -1
- package/2022-11-30/index.d.ts +11 -1
- package/2022-11-30/index.ts +11 -1
- package/2023-03-01/index.d.ts +11 -1
- package/2023-03-01/index.ts +11 -1
- package/2023-07-01/index.d.ts +11 -1
- package/2023-07-01/index.ts +11 -1
- package/experimental/index.d.ts +19 -1
- package/experimental/index.ts +19 -1
- package/index.d.ts +11 -1
- package/index.ts +11 -1
- package/latest/index.d.ts +11 -1
- package/latest/index.ts +11 -1
- package/oldest/index.d.ts +11 -1
- package/oldest/index.ts +11 -1
- package/package.json +1 -1
package/2021-11-03/index.d.ts
CHANGED
|
@@ -3463,7 +3463,7 @@ declare var WebSocket: {
|
|
|
3463
3463
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3464
3464
|
*/
|
|
3465
3465
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3466
|
-
accept(): void;
|
|
3466
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3467
3467
|
/**
|
|
3468
3468
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3469
3469
|
*
|
|
@@ -3509,6 +3509,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3509
3509
|
*/
|
|
3510
3510
|
binaryType: "blob" | "arraybuffer";
|
|
3511
3511
|
}
|
|
3512
|
+
interface WebSocketAcceptOptions {
|
|
3513
|
+
/**
|
|
3514
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3515
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3516
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3517
|
+
* both sides independently. Defaults to `false` when the
|
|
3518
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3519
|
+
*/
|
|
3520
|
+
allowHalfOpen?: boolean;
|
|
3521
|
+
}
|
|
3512
3522
|
declare const WebSocketPair: {
|
|
3513
3523
|
new (): {
|
|
3514
3524
|
0: WebSocket;
|
package/2021-11-03/index.ts
CHANGED
|
@@ -3469,7 +3469,7 @@ export declare var WebSocket: {
|
|
|
3469
3469
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3470
3470
|
*/
|
|
3471
3471
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3472
|
-
accept(): void;
|
|
3472
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3473
3473
|
/**
|
|
3474
3474
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3475
3475
|
*
|
|
@@ -3515,6 +3515,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3515
3515
|
*/
|
|
3516
3516
|
binaryType: "blob" | "arraybuffer";
|
|
3517
3517
|
}
|
|
3518
|
+
export interface WebSocketAcceptOptions {
|
|
3519
|
+
/**
|
|
3520
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3521
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3522
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3523
|
+
* both sides independently. Defaults to `false` when the
|
|
3524
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3525
|
+
*/
|
|
3526
|
+
allowHalfOpen?: boolean;
|
|
3527
|
+
}
|
|
3518
3528
|
export declare const WebSocketPair: {
|
|
3519
3529
|
new (): {
|
|
3520
3530
|
0: WebSocket;
|
package/2022-01-31/index.d.ts
CHANGED
|
@@ -3530,7 +3530,7 @@ declare var WebSocket: {
|
|
|
3530
3530
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3531
3531
|
*/
|
|
3532
3532
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3533
|
-
accept(): void;
|
|
3533
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3534
3534
|
/**
|
|
3535
3535
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3536
3536
|
*
|
|
@@ -3576,6 +3576,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3576
3576
|
*/
|
|
3577
3577
|
binaryType: "blob" | "arraybuffer";
|
|
3578
3578
|
}
|
|
3579
|
+
interface WebSocketAcceptOptions {
|
|
3580
|
+
/**
|
|
3581
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3582
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3583
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3584
|
+
* both sides independently. Defaults to `false` when the
|
|
3585
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3586
|
+
*/
|
|
3587
|
+
allowHalfOpen?: boolean;
|
|
3588
|
+
}
|
|
3579
3589
|
declare const WebSocketPair: {
|
|
3580
3590
|
new (): {
|
|
3581
3591
|
0: WebSocket;
|
package/2022-01-31/index.ts
CHANGED
|
@@ -3536,7 +3536,7 @@ export declare var WebSocket: {
|
|
|
3536
3536
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3537
3537
|
*/
|
|
3538
3538
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3539
|
-
accept(): void;
|
|
3539
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3540
3540
|
/**
|
|
3541
3541
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3542
3542
|
*
|
|
@@ -3582,6 +3582,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3582
3582
|
*/
|
|
3583
3583
|
binaryType: "blob" | "arraybuffer";
|
|
3584
3584
|
}
|
|
3585
|
+
export interface WebSocketAcceptOptions {
|
|
3586
|
+
/**
|
|
3587
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3588
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3589
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3590
|
+
* both sides independently. Defaults to `false` when the
|
|
3591
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3592
|
+
*/
|
|
3593
|
+
allowHalfOpen?: boolean;
|
|
3594
|
+
}
|
|
3585
3595
|
export declare const WebSocketPair: {
|
|
3586
3596
|
new (): {
|
|
3587
3597
|
0: WebSocket;
|
package/2022-03-21/index.d.ts
CHANGED
|
@@ -3538,7 +3538,7 @@ declare var WebSocket: {
|
|
|
3538
3538
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3539
3539
|
*/
|
|
3540
3540
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3541
|
-
accept(): void;
|
|
3541
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3542
3542
|
/**
|
|
3543
3543
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3544
3544
|
*
|
|
@@ -3584,6 +3584,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3584
3584
|
*/
|
|
3585
3585
|
binaryType: "blob" | "arraybuffer";
|
|
3586
3586
|
}
|
|
3587
|
+
interface WebSocketAcceptOptions {
|
|
3588
|
+
/**
|
|
3589
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3590
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3591
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3592
|
+
* both sides independently. Defaults to `false` when the
|
|
3593
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3594
|
+
*/
|
|
3595
|
+
allowHalfOpen?: boolean;
|
|
3596
|
+
}
|
|
3587
3597
|
declare const WebSocketPair: {
|
|
3588
3598
|
new (): {
|
|
3589
3599
|
0: WebSocket;
|
package/2022-03-21/index.ts
CHANGED
|
@@ -3544,7 +3544,7 @@ export declare var WebSocket: {
|
|
|
3544
3544
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3545
3545
|
*/
|
|
3546
3546
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3547
|
-
accept(): void;
|
|
3547
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3548
3548
|
/**
|
|
3549
3549
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3550
3550
|
*
|
|
@@ -3590,6 +3590,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3590
3590
|
*/
|
|
3591
3591
|
binaryType: "blob" | "arraybuffer";
|
|
3592
3592
|
}
|
|
3593
|
+
export interface WebSocketAcceptOptions {
|
|
3594
|
+
/**
|
|
3595
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3596
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3597
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3598
|
+
* both sides independently. Defaults to `false` when the
|
|
3599
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3600
|
+
*/
|
|
3601
|
+
allowHalfOpen?: boolean;
|
|
3602
|
+
}
|
|
3593
3603
|
export declare const WebSocketPair: {
|
|
3594
3604
|
new (): {
|
|
3595
3605
|
0: WebSocket;
|
package/2022-08-04/index.d.ts
CHANGED
|
@@ -3539,7 +3539,7 @@ declare var WebSocket: {
|
|
|
3539
3539
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3540
3540
|
*/
|
|
3541
3541
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3542
|
-
accept(): void;
|
|
3542
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3543
3543
|
/**
|
|
3544
3544
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3545
3545
|
*
|
|
@@ -3585,6 +3585,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3585
3585
|
*/
|
|
3586
3586
|
binaryType: "blob" | "arraybuffer";
|
|
3587
3587
|
}
|
|
3588
|
+
interface WebSocketAcceptOptions {
|
|
3589
|
+
/**
|
|
3590
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3591
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3592
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3593
|
+
* both sides independently. Defaults to `false` when the
|
|
3594
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3595
|
+
*/
|
|
3596
|
+
allowHalfOpen?: boolean;
|
|
3597
|
+
}
|
|
3588
3598
|
declare const WebSocketPair: {
|
|
3589
3599
|
new (): {
|
|
3590
3600
|
0: WebSocket;
|
package/2022-08-04/index.ts
CHANGED
|
@@ -3545,7 +3545,7 @@ export declare var WebSocket: {
|
|
|
3545
3545
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3546
3546
|
*/
|
|
3547
3547
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3548
|
-
accept(): void;
|
|
3548
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3549
3549
|
/**
|
|
3550
3550
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3551
3551
|
*
|
|
@@ -3591,6 +3591,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3591
3591
|
*/
|
|
3592
3592
|
binaryType: "blob" | "arraybuffer";
|
|
3593
3593
|
}
|
|
3594
|
+
export interface WebSocketAcceptOptions {
|
|
3595
|
+
/**
|
|
3596
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3597
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3598
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3599
|
+
* both sides independently. Defaults to `false` when the
|
|
3600
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3601
|
+
*/
|
|
3602
|
+
allowHalfOpen?: boolean;
|
|
3603
|
+
}
|
|
3594
3604
|
export declare const WebSocketPair: {
|
|
3595
3605
|
new (): {
|
|
3596
3606
|
0: WebSocket;
|
package/2022-10-31/index.d.ts
CHANGED
|
@@ -3559,7 +3559,7 @@ declare var WebSocket: {
|
|
|
3559
3559
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3560
3560
|
*/
|
|
3561
3561
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3562
|
-
accept(): void;
|
|
3562
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3563
3563
|
/**
|
|
3564
3564
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3565
3565
|
*
|
|
@@ -3605,6 +3605,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3605
3605
|
*/
|
|
3606
3606
|
binaryType: "blob" | "arraybuffer";
|
|
3607
3607
|
}
|
|
3608
|
+
interface WebSocketAcceptOptions {
|
|
3609
|
+
/**
|
|
3610
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3611
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3612
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3613
|
+
* both sides independently. Defaults to `false` when the
|
|
3614
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3615
|
+
*/
|
|
3616
|
+
allowHalfOpen?: boolean;
|
|
3617
|
+
}
|
|
3608
3618
|
declare const WebSocketPair: {
|
|
3609
3619
|
new (): {
|
|
3610
3620
|
0: WebSocket;
|
package/2022-10-31/index.ts
CHANGED
|
@@ -3565,7 +3565,7 @@ export declare var WebSocket: {
|
|
|
3565
3565
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3566
3566
|
*/
|
|
3567
3567
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3568
|
-
accept(): void;
|
|
3568
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3569
3569
|
/**
|
|
3570
3570
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3571
3571
|
*
|
|
@@ -3611,6 +3611,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3611
3611
|
*/
|
|
3612
3612
|
binaryType: "blob" | "arraybuffer";
|
|
3613
3613
|
}
|
|
3614
|
+
export interface WebSocketAcceptOptions {
|
|
3615
|
+
/**
|
|
3616
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3617
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3618
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3619
|
+
* both sides independently. Defaults to `false` when the
|
|
3620
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3621
|
+
*/
|
|
3622
|
+
allowHalfOpen?: boolean;
|
|
3623
|
+
}
|
|
3614
3624
|
export declare const WebSocketPair: {
|
|
3615
3625
|
new (): {
|
|
3616
3626
|
0: WebSocket;
|
package/2022-11-30/index.d.ts
CHANGED
|
@@ -3564,7 +3564,7 @@ declare var WebSocket: {
|
|
|
3564
3564
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3565
3565
|
*/
|
|
3566
3566
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3567
|
-
accept(): void;
|
|
3567
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3568
3568
|
/**
|
|
3569
3569
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3570
3570
|
*
|
|
@@ -3610,6 +3610,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3610
3610
|
*/
|
|
3611
3611
|
binaryType: "blob" | "arraybuffer";
|
|
3612
3612
|
}
|
|
3613
|
+
interface WebSocketAcceptOptions {
|
|
3614
|
+
/**
|
|
3615
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3616
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3617
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3618
|
+
* both sides independently. Defaults to `false` when the
|
|
3619
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3620
|
+
*/
|
|
3621
|
+
allowHalfOpen?: boolean;
|
|
3622
|
+
}
|
|
3613
3623
|
declare const WebSocketPair: {
|
|
3614
3624
|
new (): {
|
|
3615
3625
|
0: WebSocket;
|
package/2022-11-30/index.ts
CHANGED
|
@@ -3570,7 +3570,7 @@ export declare var WebSocket: {
|
|
|
3570
3570
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3571
3571
|
*/
|
|
3572
3572
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3573
|
-
accept(): void;
|
|
3573
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3574
3574
|
/**
|
|
3575
3575
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3576
3576
|
*
|
|
@@ -3616,6 +3616,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3616
3616
|
*/
|
|
3617
3617
|
binaryType: "blob" | "arraybuffer";
|
|
3618
3618
|
}
|
|
3619
|
+
export interface WebSocketAcceptOptions {
|
|
3620
|
+
/**
|
|
3621
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3622
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3623
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3624
|
+
* both sides independently. Defaults to `false` when the
|
|
3625
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3626
|
+
*/
|
|
3627
|
+
allowHalfOpen?: boolean;
|
|
3628
|
+
}
|
|
3619
3629
|
export declare const WebSocketPair: {
|
|
3620
3630
|
new (): {
|
|
3621
3631
|
0: WebSocket;
|
package/2023-03-01/index.d.ts
CHANGED
|
@@ -3570,7 +3570,7 @@ declare var WebSocket: {
|
|
|
3570
3570
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3571
3571
|
*/
|
|
3572
3572
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3573
|
-
accept(): void;
|
|
3573
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3574
3574
|
/**
|
|
3575
3575
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3576
3576
|
*
|
|
@@ -3616,6 +3616,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3616
3616
|
*/
|
|
3617
3617
|
binaryType: "blob" | "arraybuffer";
|
|
3618
3618
|
}
|
|
3619
|
+
interface WebSocketAcceptOptions {
|
|
3620
|
+
/**
|
|
3621
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3622
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3623
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3624
|
+
* both sides independently. Defaults to `false` when the
|
|
3625
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3626
|
+
*/
|
|
3627
|
+
allowHalfOpen?: boolean;
|
|
3628
|
+
}
|
|
3619
3629
|
declare const WebSocketPair: {
|
|
3620
3630
|
new (): {
|
|
3621
3631
|
0: WebSocket;
|
package/2023-03-01/index.ts
CHANGED
|
@@ -3576,7 +3576,7 @@ export declare var WebSocket: {
|
|
|
3576
3576
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3577
3577
|
*/
|
|
3578
3578
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3579
|
-
accept(): void;
|
|
3579
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3580
3580
|
/**
|
|
3581
3581
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3582
3582
|
*
|
|
@@ -3622,6 +3622,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3622
3622
|
*/
|
|
3623
3623
|
binaryType: "blob" | "arraybuffer";
|
|
3624
3624
|
}
|
|
3625
|
+
export interface WebSocketAcceptOptions {
|
|
3626
|
+
/**
|
|
3627
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3628
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3629
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3630
|
+
* both sides independently. Defaults to `false` when the
|
|
3631
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3632
|
+
*/
|
|
3633
|
+
allowHalfOpen?: boolean;
|
|
3634
|
+
}
|
|
3625
3635
|
export declare const WebSocketPair: {
|
|
3626
3636
|
new (): {
|
|
3627
3637
|
0: WebSocket;
|
package/2023-07-01/index.d.ts
CHANGED
|
@@ -3570,7 +3570,7 @@ declare var WebSocket: {
|
|
|
3570
3570
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3571
3571
|
*/
|
|
3572
3572
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3573
|
-
accept(): void;
|
|
3573
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3574
3574
|
/**
|
|
3575
3575
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3576
3576
|
*
|
|
@@ -3616,6 +3616,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3616
3616
|
*/
|
|
3617
3617
|
binaryType: "blob" | "arraybuffer";
|
|
3618
3618
|
}
|
|
3619
|
+
interface WebSocketAcceptOptions {
|
|
3620
|
+
/**
|
|
3621
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3622
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3623
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3624
|
+
* both sides independently. Defaults to `false` when the
|
|
3625
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3626
|
+
*/
|
|
3627
|
+
allowHalfOpen?: boolean;
|
|
3628
|
+
}
|
|
3619
3629
|
declare const WebSocketPair: {
|
|
3620
3630
|
new (): {
|
|
3621
3631
|
0: WebSocket;
|
package/2023-07-01/index.ts
CHANGED
|
@@ -3576,7 +3576,7 @@ export declare var WebSocket: {
|
|
|
3576
3576
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3577
3577
|
*/
|
|
3578
3578
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3579
|
-
accept(): void;
|
|
3579
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3580
3580
|
/**
|
|
3581
3581
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3582
3582
|
*
|
|
@@ -3622,6 +3622,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3622
3622
|
*/
|
|
3623
3623
|
binaryType: "blob" | "arraybuffer";
|
|
3624
3624
|
}
|
|
3625
|
+
export interface WebSocketAcceptOptions {
|
|
3626
|
+
/**
|
|
3627
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3628
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3629
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3630
|
+
* both sides independently. Defaults to `false` when the
|
|
3631
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3632
|
+
*/
|
|
3633
|
+
allowHalfOpen?: boolean;
|
|
3634
|
+
}
|
|
3625
3635
|
export declare const WebSocketPair: {
|
|
3626
3636
|
new (): {
|
|
3627
3637
|
0: WebSocket;
|
package/experimental/index.d.ts
CHANGED
|
@@ -492,6 +492,14 @@ interface ExecutionContext<Props = unknown> {
|
|
|
492
492
|
passThroughOnException(): void;
|
|
493
493
|
readonly exports: Cloudflare.Exports;
|
|
494
494
|
readonly props: Props;
|
|
495
|
+
readonly version?: {
|
|
496
|
+
readonly metadata?: {
|
|
497
|
+
readonly id: string;
|
|
498
|
+
};
|
|
499
|
+
readonly cohort?: string;
|
|
500
|
+
readonly key?: string;
|
|
501
|
+
readonly override?: string;
|
|
502
|
+
};
|
|
495
503
|
abort(reason?: any): void;
|
|
496
504
|
}
|
|
497
505
|
type ExportedHandlerFetchHandler<
|
|
@@ -3688,7 +3696,7 @@ declare var WebSocket: {
|
|
|
3688
3696
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3689
3697
|
*/
|
|
3690
3698
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3691
|
-
accept(): void;
|
|
3699
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3692
3700
|
/**
|
|
3693
3701
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3694
3702
|
*
|
|
@@ -3734,6 +3742,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3734
3742
|
*/
|
|
3735
3743
|
binaryType: "blob" | "arraybuffer";
|
|
3736
3744
|
}
|
|
3745
|
+
interface WebSocketAcceptOptions {
|
|
3746
|
+
/**
|
|
3747
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3748
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3749
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3750
|
+
* both sides independently. Defaults to `false` when the
|
|
3751
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3752
|
+
*/
|
|
3753
|
+
allowHalfOpen?: boolean;
|
|
3754
|
+
}
|
|
3737
3755
|
declare const WebSocketPair: {
|
|
3738
3756
|
new (): {
|
|
3739
3757
|
0: WebSocket;
|
package/experimental/index.ts
CHANGED
|
@@ -494,6 +494,14 @@ export interface ExecutionContext<Props = unknown> {
|
|
|
494
494
|
passThroughOnException(): void;
|
|
495
495
|
readonly exports: Cloudflare.Exports;
|
|
496
496
|
readonly props: Props;
|
|
497
|
+
readonly version?: {
|
|
498
|
+
readonly metadata?: {
|
|
499
|
+
readonly id: string;
|
|
500
|
+
};
|
|
501
|
+
readonly cohort?: string;
|
|
502
|
+
readonly key?: string;
|
|
503
|
+
readonly override?: string;
|
|
504
|
+
};
|
|
497
505
|
abort(reason?: any): void;
|
|
498
506
|
}
|
|
499
507
|
export type ExportedHandlerFetchHandler<
|
|
@@ -3694,7 +3702,7 @@ export declare var WebSocket: {
|
|
|
3694
3702
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3695
3703
|
*/
|
|
3696
3704
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3697
|
-
accept(): void;
|
|
3705
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3698
3706
|
/**
|
|
3699
3707
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3700
3708
|
*
|
|
@@ -3740,6 +3748,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3740
3748
|
*/
|
|
3741
3749
|
binaryType: "blob" | "arraybuffer";
|
|
3742
3750
|
}
|
|
3751
|
+
export interface WebSocketAcceptOptions {
|
|
3752
|
+
/**
|
|
3753
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3754
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3755
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3756
|
+
* both sides independently. Defaults to `false` when the
|
|
3757
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3758
|
+
*/
|
|
3759
|
+
allowHalfOpen?: boolean;
|
|
3760
|
+
}
|
|
3743
3761
|
export declare const WebSocketPair: {
|
|
3744
3762
|
new (): {
|
|
3745
3763
|
0: WebSocket;
|
package/index.d.ts
CHANGED
|
@@ -3463,7 +3463,7 @@ declare var WebSocket: {
|
|
|
3463
3463
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3464
3464
|
*/
|
|
3465
3465
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3466
|
-
accept(): void;
|
|
3466
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3467
3467
|
/**
|
|
3468
3468
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3469
3469
|
*
|
|
@@ -3509,6 +3509,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3509
3509
|
*/
|
|
3510
3510
|
binaryType: "blob" | "arraybuffer";
|
|
3511
3511
|
}
|
|
3512
|
+
interface WebSocketAcceptOptions {
|
|
3513
|
+
/**
|
|
3514
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3515
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3516
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3517
|
+
* both sides independently. Defaults to `false` when the
|
|
3518
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3519
|
+
*/
|
|
3520
|
+
allowHalfOpen?: boolean;
|
|
3521
|
+
}
|
|
3512
3522
|
declare const WebSocketPair: {
|
|
3513
3523
|
new (): {
|
|
3514
3524
|
0: WebSocket;
|
package/index.ts
CHANGED
|
@@ -3469,7 +3469,7 @@ export declare var WebSocket: {
|
|
|
3469
3469
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3470
3470
|
*/
|
|
3471
3471
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3472
|
-
accept(): void;
|
|
3472
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3473
3473
|
/**
|
|
3474
3474
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3475
3475
|
*
|
|
@@ -3515,6 +3515,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3515
3515
|
*/
|
|
3516
3516
|
binaryType: "blob" | "arraybuffer";
|
|
3517
3517
|
}
|
|
3518
|
+
export interface WebSocketAcceptOptions {
|
|
3519
|
+
/**
|
|
3520
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3521
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3522
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3523
|
+
* both sides independently. Defaults to `false` when the
|
|
3524
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3525
|
+
*/
|
|
3526
|
+
allowHalfOpen?: boolean;
|
|
3527
|
+
}
|
|
3518
3528
|
export declare const WebSocketPair: {
|
|
3519
3529
|
new (): {
|
|
3520
3530
|
0: WebSocket;
|
package/latest/index.d.ts
CHANGED
|
@@ -3583,7 +3583,7 @@ declare var WebSocket: {
|
|
|
3583
3583
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3584
3584
|
*/
|
|
3585
3585
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3586
|
-
accept(): void;
|
|
3586
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3587
3587
|
/**
|
|
3588
3588
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3589
3589
|
*
|
|
@@ -3629,6 +3629,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3629
3629
|
*/
|
|
3630
3630
|
binaryType: "blob" | "arraybuffer";
|
|
3631
3631
|
}
|
|
3632
|
+
interface WebSocketAcceptOptions {
|
|
3633
|
+
/**
|
|
3634
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3635
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3636
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3637
|
+
* both sides independently. Defaults to `false` when the
|
|
3638
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3639
|
+
*/
|
|
3640
|
+
allowHalfOpen?: boolean;
|
|
3641
|
+
}
|
|
3632
3642
|
declare const WebSocketPair: {
|
|
3633
3643
|
new (): {
|
|
3634
3644
|
0: WebSocket;
|
package/latest/index.ts
CHANGED
|
@@ -3589,7 +3589,7 @@ export declare var WebSocket: {
|
|
|
3589
3589
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3590
3590
|
*/
|
|
3591
3591
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3592
|
-
accept(): void;
|
|
3592
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3593
3593
|
/**
|
|
3594
3594
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3595
3595
|
*
|
|
@@ -3635,6 +3635,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3635
3635
|
*/
|
|
3636
3636
|
binaryType: "blob" | "arraybuffer";
|
|
3637
3637
|
}
|
|
3638
|
+
export interface WebSocketAcceptOptions {
|
|
3639
|
+
/**
|
|
3640
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3641
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3642
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3643
|
+
* both sides independently. Defaults to `false` when the
|
|
3644
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3645
|
+
*/
|
|
3646
|
+
allowHalfOpen?: boolean;
|
|
3647
|
+
}
|
|
3638
3648
|
export declare const WebSocketPair: {
|
|
3639
3649
|
new (): {
|
|
3640
3650
|
0: WebSocket;
|
package/oldest/index.d.ts
CHANGED
|
@@ -3463,7 +3463,7 @@ declare var WebSocket: {
|
|
|
3463
3463
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3464
3464
|
*/
|
|
3465
3465
|
interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3466
|
-
accept(): void;
|
|
3466
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3467
3467
|
/**
|
|
3468
3468
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3469
3469
|
*
|
|
@@ -3509,6 +3509,16 @@ interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3509
3509
|
*/
|
|
3510
3510
|
binaryType: "blob" | "arraybuffer";
|
|
3511
3511
|
}
|
|
3512
|
+
interface WebSocketAcceptOptions {
|
|
3513
|
+
/**
|
|
3514
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3515
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3516
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3517
|
+
* both sides independently. Defaults to `false` when the
|
|
3518
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3519
|
+
*/
|
|
3520
|
+
allowHalfOpen?: boolean;
|
|
3521
|
+
}
|
|
3512
3522
|
declare const WebSocketPair: {
|
|
3513
3523
|
new (): {
|
|
3514
3524
|
0: WebSocket;
|
package/oldest/index.ts
CHANGED
|
@@ -3469,7 +3469,7 @@ export declare var WebSocket: {
|
|
|
3469
3469
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
|
|
3470
3470
|
*/
|
|
3471
3471
|
export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
3472
|
-
accept(): void;
|
|
3472
|
+
accept(options?: WebSocketAcceptOptions): void;
|
|
3473
3473
|
/**
|
|
3474
3474
|
* The **`WebSocket.send()`** method enqueues the specified data to be transmitted to the server over the WebSocket connection, increasing the value of `bufferedAmount` by the number of bytes needed to contain the data.
|
|
3475
3475
|
*
|
|
@@ -3515,6 +3515,16 @@ export interface WebSocket extends EventTarget<WebSocketEventMap> {
|
|
|
3515
3515
|
*/
|
|
3516
3516
|
binaryType: "blob" | "arraybuffer";
|
|
3517
3517
|
}
|
|
3518
|
+
export interface WebSocketAcceptOptions {
|
|
3519
|
+
/**
|
|
3520
|
+
* When set to `true`, receiving a server-initiated WebSocket Close frame will not
|
|
3521
|
+
* automatically send a reciprocal Close frame, leaving the connection in a half-open
|
|
3522
|
+
* state. This is useful for proxying scenarios where you need to coordinate closing
|
|
3523
|
+
* both sides independently. Defaults to `false` when the
|
|
3524
|
+
* `no_web_socket_half_open_by_default` compatibility flag is enabled.
|
|
3525
|
+
*/
|
|
3526
|
+
allowHalfOpen?: boolean;
|
|
3527
|
+
}
|
|
3518
3528
|
export declare const WebSocketPair: {
|
|
3519
3529
|
new (): {
|
|
3520
3530
|
0: WebSocket;
|
package/package.json
CHANGED