Polyfills.d.ts 391 B

12345678910
  1. /** @private */
  2. export declare type EventSourceConstructor = new (url: string, eventSourceInitDict?: EventSourceInit) => EventSource;
  3. /** @private */
  4. export interface WebSocketConstructor {
  5. new (url: string, protocols?: string | string[], options?: any): WebSocket;
  6. readonly CLOSED: number;
  7. readonly CLOSING: number;
  8. readonly CONNECTING: number;
  9. readonly OPEN: number;
  10. }