Package org.inthewaves.kotlinsignald.clientprotocol

Types

Link copied to clipboard
expect interface AutoCloseable
actual typealias AutoCloseable = AutoCloseable
actual interface AutoCloseable
Link copied to clipboard
open class RequestFailedException(responseJsonString: String?, errorBody: JsonObject?, errorType: String?, exception: String?, extraMessage: String?, cause: Throwable?) : SignaldException

An exception that is thrown if the resulting JSON can't be deserialized or the socket returns an error response.

Link copied to clipboard
expect open class SignaldException : Exception
actual typealias SignaldException = IOException
actual open class SignaldException : Exception
Link copied to clipboard
interface SocketCommunicator : AutoCloseable

An interface to facilitate communication with signald socket. The implementation might close socket connections after making a request, in which case, the readLine function will not be supported.

Link copied to clipboard
interface SuspendSocketCommunicator : AutoCloseable

An interface to facilitate communication with signald socket. The implementation might close socket connections after making a request, in which case, the readLineSuspend function will not be supported.

Properties

Link copied to clipboard
val SignaldJson: Json

The Json instance used to serialize and deserialize signald requests and responses. We set it to ignore unknown keys for forward compatibility reasons.