Skip to content

Create GraphQLHttpWebSocket only when needed #246

@christianheld

Description

@christianheld

GraphQLHttpClient instance always creates a GraphQLHttpWebSocket instance, even if Options.UseWebSocketForQueriesAndMutations is false.

I guess the GraphQLHttpWebSocket's subscription prevents GC from cleaning up client instances that have not been disposes manually (which should be done anyway).

Consider creating GraphQLHttpWebSocket on first use or only if UseWebSocketForQueriesAndMutations is true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions