public ClientWebSocket() { if (NetEventSource.IsEnabled) { NetEventSource.Enter(this); } WebSocketHandle.CheckPlatformSupport(); _state = (int)InternalState.Created; _options = new ClientWebSocketOptions(); if (NetEventSource.IsEnabled) { NetEventSource.Exit(this); } }