Factory
fun Factory(authorization: Map<String, Any?>, connectionAcknowledgeTimeoutMs: Long)
Content copied to clipboard
fun Factory(connectionAcknowledgeTimeoutMs: Long, connectionPayload: suspend () -> Map<String, Any?>? = { null })
Content copied to clipboard
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"
)
Content copied to clipboard