Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FilteredResponseHandler

Interface which specifies a response handler for requests dispatched through a filter.

Hierarchy

  • FilteredResponseHandler

Index

Methods

onResponse

  • onResponse(sessionId: SessionId, response: any): void
  • Called to indicate a response has been received.

    function

    Session.messages.FilteredResponseHandler.onResponse

    Parameters

    • sessionId: SessionId

      session ID of the session that sent the response

    • response: any

      response object

    Returns void

onResponseError

  • onResponseError(sessionId: SessionId, error: Error): void
  • Called when a response from a session results in an error.

    Parameters

    • sessionId: SessionId

      sessionID of the session in error

    • error: Error

    Returns void