1 | // Copyright (c) .NET Foundation. All rights reserved.
|
2 | // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
3 |
|
4 | // Not exported from index
|
5 |
|
6 | /** @private */
|
7 | export type EventSourceConstructor = new(url: string, eventSourceInitDict?: EventSourceInit) => EventSource;
|
8 |
|
9 | /** @private */
|
10 | export interface WebSocketConstructor {
|
11 | new(url: string, protocols?: string | string[], options?: any): WebSocket;
|
12 | readonly CLOSED: number;
|
13 | readonly CLOSING: number;
|
14 | readonly CONNECTING: number;
|
15 | readonly OPEN: number;
|
16 | }
|