Skip to content

Commit d46d144

Browse files
committed
fix: remove unnecessary type
1 parent 727bddd commit d46d144

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

site/src/testHelpers/websockets.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,6 @@ export type MockWebSocketPublisher = Readonly<{
77
publishOpen: (event: Event) => void;
88
}>;
99

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-
2710
export function createMockWebSocket(
2811
url: string,
2912
protocols?: string | string[],

0 commit comments

Comments
 (0)