17 lines
540 B
TypeScript
17 lines
540 B
TypeScript
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
// Not exported from index
|
|
|
|
export interface EventSourceConstructor {
|
|
new(url: string, eventSourceInitDict?: EventSourceInit): EventSource;
|
|
}
|
|
|
|
export interface WebSocketConstructor {
|
|
new(url: string, protocols?: string | string[]): WebSocket;
|
|
readonly CLOSED: number;
|
|
readonly CLOSING: number;
|
|
readonly CONNECTING: number;
|
|
readonly OPEN: number;
|
|
}
|