Connection.setServerConnectToken()
DESCRIPTION
Set a server connect token for use with this connection for establishing a remote connection (if the authentication type for the application associated with this client is set to “SCT” in the Nabto Cloud Console). The SCT must be shared with the target device, typically setup in the pairing step.
DECLARATION
public func setServerConnectToken(sct: String) throws
PARAMETERS
- key:
- The SCT to use for this connection.
THROWS ERRORS
- INVALID_STATE:
- if connection already established