Factory

fun Factory(authorization: Map<String, Any?>, connectionAcknowledgeTimeoutMs: Long)


fun Factory(connectionAcknowledgeTimeoutMs: Long, connectionPayload: suspend () -> Map<String, Any?>? = { null })

Parameters

connectionPayload

: a function generating a map containing the authorization information. For an example:

mapOf(
"host" to "example1234567890000.appsync-api.us-east-1.amazonaws.com",
"x-api-key" to "da2-12345678901234567890123456"
)