Packages

A client for connecting with GraphQL over Websockets following the graphql-ws conventions.

Current section

Files

Jump to
graphql_ws_client lib graphql_ws_client drivers gun opts.ex
Raw

lib/graphql_ws_client/drivers/gun/opts.ex

defmodule GraphQLWSClient.Drivers.Gun.Opts do
@moduledoc false
defstruct adapter: :gun, json_library: Jason
@type t :: %__MODULE__{adapter: module, json_library: module}
@spec new(map) :: t
def new(opts) do
struct!(__MODULE__, opts)
end
end