Modified 'HTTP Authentication'
This commit is contained in:
		@@ -432,9 +432,9 @@ ws.SetCredentials ("nobita", "password", true);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
If `preAuth` is `true`, the `WebSocket` sends the Basic authentication credentials with the first connection request to the server.
 | 
					If `preAuth` is `true`, the `WebSocket` sends the Basic authentication credentials with the first connection request to the server.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
And if `preAuth` is `false`, the `WebSocket` sends either the Basic or Digest authentication (determined by the unauthorized response to the first connection request) credentials with the second connection request to the server.
 | 
					Or if `preAuth` is `false`, the `WebSocket` sends either the Basic or Digest authentication (determined by the unauthorized response to the first connection request) credentials with the second connection request to the server.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
As a **WebSocket Server**, you should set an HTTP authentication scheme, a realm, and any function to find the user credentials before starting. It's like the following.
 | 
					As a **WebSocket Server**, you should set an HTTP authentication scheme, a realm, and any function to find the user credentials, before starting. It's like the following.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```cs
 | 
					```cs
 | 
				
			||||||
wssv.AuthenticationSchemes = AuthenticationSchemes.Basic;
 | 
					wssv.AuthenticationSchemes = AuthenticationSchemes.Basic;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user