ts-lambda-api - v2.5.2
    Preparing search index...

    Function prependListener

    • Adds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

      server.prependListener('connection', (stream) => {
      console.log('someone connected!');
      });

      Returns a reference to the EventEmitter, so that calls can be chained.

      Parameters

      • event: "close"
      • listener: () => void

        The callback function

      Returns this

      v6.0.0

    • Parameters

      • event: "data"
      • listener: (chunk: any) => void

      Returns this

    • Parameters

      • event: "end"
      • listener: () => void

      Returns this

    • Parameters

      • event: "error"
      • listener: (err: Error) => void

      Returns this

    • Parameters

      • event: "pause"
      • listener: () => void

      Returns this

    • Parameters

      • event: "readable"
      • listener: () => void

      Returns this

    • Parameters

      • event: "resume"
      • listener: () => void

      Returns this

    • Parameters

      • event: string | symbol
      • listener: (...args: any[]) => void

      Returns this