withWebSocket property

bool withWebSocket
getter/setter pair

Indicator whether this GraphQlClient should allow WebSocketLink connections.

If false, then subscribe won't emit any data.

Intended to be used for tests only, because tests may construct GraphQlClients on-the-flight just to do some queries or mutations, which don't need WebSocket connections at all.

Implementation

bool withWebSocket = true;