fromAsset

fun fromAsset(fileName: String? = null): WebcomConfiguration

Builds a WebcomConfiguration instance from an Android asset fileName.

If fileName is omitted, then the webcom.properties file name is used by default.

Throws

if the asset file cannot be opened or read.

if the "applicationId" property is missing or the "websocketProtocol" property cannot be parsed within the asset file.