SubscribeRequest

data class SubscribeRequest(account: String) : SignaldRequestBodyV1<SubscriptionResponse>

receive incoming messages. After making a subscribe request, incoming messages will be sent to the client encoded as ClientMessageWrapper. Send an unsubscribe request or disconnect from the socket to stop receiving messages.

Constructors

SubscribeRequest
Link copied to clipboard
common
fun SubscribeRequest(account: String)

Functions

submit
Link copied to clipboard
common
fun submit(socketCommunicator: SocketCommunicator): SubscriptionResponse
open override fun submit(socketCommunicator: SocketCommunicator, id: String): SubscriptionResponse
Marked as internal so tests can access.
submitSuspend
Link copied to clipboard
common
suspend fun submitSuspend(socketCommunicator: SuspendSocketCommunicator): SubscriptionResponse
open suspend override fun submitSuspend(socketCommunicator: SuspendSocketCommunicator, id: String): SubscriptionResponse
Marked as internal so tests can access.

Properties

account
Link copied to clipboard
common
val account: String
The account to subscribe to incoming message forExample: "+12024561414"
id
Link copied to clipboard
common
val id: String
The id to include in the request.
version
Link copied to clipboard
common
val version: String
The version to include in the request.