create

fun create(descriptor: ConnectionDescriptor, reports: List<ReportDescriptor>?, onConnectionComplete: (SASManager.Result) -> Unit? = null, onSubscribeComplete: (Server.Result) -> Unit? = null)

Creates a connections to a SAS Visual Analytics server.

Parameters

descriptor
describes the connection to create.
reports
optional reports to subscribe to once the connection has been created.
onConnectionComplete
an optional callback invoked when the connection-creation process has completed
(successfully or otherwise).
onSubscribeComplete
an optional callback invoked when a subscription process has completed (successfully or
otherwise).

Throws

if an I/O error occurs while reading from input.