buildUrl

@NotNull
open fun buildUrl(@NotNull baseUrl: String, @NotNull authorization: Map<String, Any>, @NotNull payload: Map<String, Any>): String

Helper method that builds the final URL. It will append the authorization and payload arguments as query parameters. This method can be used for both the HTTP URL as well as the WebSocket URL.

Example:

    Mapauthorization = new HashMap

Parameters

baseUrl

The base web socket URL.

authorization

The authorization as per the AppSync documentation.

payload

An optional payload - can be empty but must not be null