Verifies that the connection is in an expected state.
Syntax
Parameters
- state
-
The current state of the WebSocket to be tested against the list of valid states. - validStates
-
List of valid connection states.
Remarks
Requirements
Namespace: System.Net.WebSockets
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0