Listener

interface Listener

Functions

Link copied to clipboard
abstract fun generalError(payload: Map<String, Any?>?)

A general error was received A general error is a protocol error that doesn't have an operation id If you have an operation id, use operationError instead

Link copied to clipboard
abstract fun networkError(cause: Throwable)

A network error occurred A network error is terminal

Link copied to clipboard
abstract fun operationComplete(id: String)

An operation is complete

Link copied to clipboard
abstract fun operationError(id: String, payload: Map<String, Any?>?)

An error was received in relation to an operation

Link copied to clipboard
abstract fun operationResponse(id: String, payload: Map<String, Any?>)

A response was received. payload might contain "errors" For subscriptions, several responses might be received.