Polyfills.ts 548 B

12345678910111213141516
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // Not exported from index
  4. /** @private */
  5. export type EventSourceConstructor = new(url: string, eventSourceInitDict?: EventSourceInit) => EventSource;
  6. /** @private */
  7. export interface WebSocketConstructor {
  8. new(url: string, protocols?: string | string[], options?: any): WebSocket;
  9. readonly CLOSED: number;
  10. readonly CLOSING: number;
  11. readonly CONNECTING: number;
  12. readonly OPEN: number;
  13. }