C-DEngine 5.105

WebSocket..::..SetCredentials Method

Sets a pair of username and password for the HTTP authentication (Basic/Digest).

Namespace:  WebSocketSharp
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public void SetCredentials(
	string username,
	string password,
	bool preAuth
)
Public Sub SetCredentials ( _
	username As String, _
	password As String, _
	preAuth As Boolean _
)
public:
void SetCredentials(
	String^ username, 
	String^ password, 
	bool^ preAuth
)

Parameters

username
Type: String
A String that represents the user name used to authenticate.
password
Type: String
A String that represents the password for username used to authenticate.
preAuth
Type: Boolean
true if the WebSocket sends the Basic authentication credentials with the first connection request to the server; otherwise, false.