> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# WebRTC Android SocketResponse

> SocketResponse reference for the Android Voice SDK. Data class used for communication between the Telnyx WebSocket connection and TelnyxClient.

## SocketResponse

Data class used with communication between socket connection and TelnyxClient.

```kotlin theme={null}
data class SocketResponse<out T>(var status: SocketStatus, val data: T?, val errorMessage: String?)
```

Where SocketStatus is a Enum class:

```kotlin theme={null}
enum class SocketStatus {
ESTABLISHED,
MESSAGERECEIVED,
ERROR,
LOADING,
DISCONNECT
}
```

The SocketStatus can be one of the following

* ESTABLISHED a connection to the socket has been established
* MESSAGERECEIVED the socket has received a message
* ERROR the socket has encountered an error
* LOADING the socket is loading a connection
* DISCONNECT when the socket is disconnect
