Interface ReadableStream

Hierarchy

Index

Properties

Methods

Properties

public readable: boolean

Methods

public addListener(event: string, listener: Function): any

Parameters

  • event: string
  • listener: Function

Returns

any

public destroy()

public emit(event: string, arg1?: any, arg2?: any)

Parameters

  • event: string
  • arg1?: any optional
  • arg2?: any optional

public listeners(event: string): Array<{ Function: any; }>

Parameters

  • event: string

Returns

Array<{ Function: any; }>

public on(event: string, listener: Function): any

Parameters

  • event: string
  • listener: Function

Returns

any

public once(event: string, listener: Function)

Parameters

  • event: string
  • listener: Function

public pause()

public pipe(destination: WritableStream, options?: { end?: boolean; })

Parameters

public removeAllListener(event: string)

Parameters

  • event: string

public removeListener(event: string, listener: Function)

Parameters

  • event: string
  • listener: Function

public resume()

public setEncoding(encoding: string)

Parameters

  • encoding: string

public setMaxListeners(n: number)

Parameters

  • n: number