-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
running the simple example on the homepage
from graphql_client import GraphQLClient
def callback(_id, data):
print("got new data..")
print(f"msg id: {_id}. data: {data}")
with GraphQLClient(endpoint) as client:
sub_id = client.subscribe(subscription,
# variables={'limit': 10},
headers=new_header,
callback=callback)
client.stop_subscribe(sub_id)
returns the following:
raceback (most recent call last):
File "dro_auth.py", line 91, in <module>
with GraphQLClient(endpoint) as client:
AttributeError: __enter__
Metadata
Metadata
Assignees
Labels
No labels