WebSocketSetCredentials Method |
Namespace: Sfs2X.WebSocketSharp
public void SetCredentials( string username, string password, bool preAuth )
A String that represents the username associated with the credentials.
or an empty string if initializes the credentials.
A String that represents the password for the username associated with the credentials.
or an empty string if not necessary.
Exception | Condition |
---|---|
InvalidOperationException | This instance is not a client. |
ArgumentException | username contains an invalid character. -or- password contains an invalid character. |