File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,6 @@ export type MockWebSocketPublisher = Readonly<{
7
7
publishOpen : ( event : Event ) => void ;
8
8
} > ;
9
9
10
- export type CreateMockWebSocketOptions = Readonly < {
11
- // The URL to use to initialize the mock socket. This should match the
12
- // "real" URL that you would pass to the built-in WebSocket constructor.
13
- url : string ;
14
-
15
- // The additional WebSocket protocols to use when initializing. This should
16
- // match the real protocols that you would pass to the built-in WebSocket
17
- // constructor.
18
- protocols ?: string | string [ ] ;
19
-
20
- // Indicates whether the mock socket should stay open after calling the
21
- // .close method, so that it can be reused for a new connection. Defaults to
22
- // false (meaning that the socket becomes completely unusable the first time
23
- // after .close is called).
24
- persistAfterClose ?: boolean ;
25
- } > ;
26
-
27
10
export function createMockWebSocket (
28
11
url : string ,
29
12
protocols ?: string | string [ ] ,
You can’t perform that action at this time.
0 commit comments