Coverage for src/lexigram/graphql/subscriptions/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-25 04:37 +0800

1"""GraphQL Subscription WebSocket Transport. 

2 

3This module provides WebSocket transport for GraphQL subscriptions 

4using the graphql-transport-ws protocol. 

5""" 

6 

7from __future__ import annotations 

8 

9from lexigram.graphql.subscriptions.auth import ( 

10 SubscriptionAuth, 

11 default_auth, 

12) 

13from lexigram.graphql.subscriptions.manager import SubscriptionManager 

14from lexigram.graphql.subscriptions.protocol import ( 

15 PROTOCOL_NAME_LEGACY, 

16 PROTOCOL_NAME_TRANSPORT_WS, 

17 GQLWSMessageType, 

18) 

19from lexigram.graphql.subscriptions.transport import ( 

20 GraphQLWSHandler, 

21 GraphQLWSTransport, 

22 SubscriptionConnection, 

23 SubscriptionInfo, 

24) 

25 

26__all__ = [ 

27 "PROTOCOL_NAME_LEGACY", 

28 "PROTOCOL_NAME_TRANSPORT_WS", 

29 # Protocol 

30 "GQLWSMessageType", 

31 # Transport 

32 "GraphQLWSHandler", 

33 "GraphQLWSTransport", 

34 # Auth 

35 "SubscriptionAuth", 

36 "SubscriptionConnection", 

37 "SubscriptionInfo", 

38 # Manager 

39 "SubscriptionManager", 

40 "default_auth", 

41]