Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benwilson512/8dd85d76eb21f72aa5ad61fe5ccb5c4d to your computer and use it in GitHub Desktop.
Save benwilson512/8dd85d76eb21f72aa5ad61fe5ccb5c4d to your computer and use it in GitHub Desktop.
# in application.ex
[
{Absinthe.Client, MyApp.Client}
]
defmodule MyApp.Client do
use Absinthe.Client
end
thing = MyApp.Client.new()
MyApp.Client.run(thing, "")
{:ok, myclient} = Absinthe.Client.new(MyApp.Client, %{socket: NamedSocket})
MyClient.run(myclient, "subscription {now }")
Absinthe.Client.run(, )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment