WebSocketListener

Functions

Link copied to clipboard
abstract fun onClosed(code: Int?, reason: String?)

The server sent a close frame, no more calls to the listener are made.

Link copied to clipboard
abstract fun onError(cause: ApolloException)

An error happened, no more calls to the listener are made.

Link copied to clipboard
abstract fun onMessage(data: ByteArray)

A data message has been received.

abstract fun onMessage(text: String)

A text message has been received.

Link copied to clipboard
abstract fun onOpen()

The HTTP 101 Switching Protocols response has been received and is valid.