def __init__(self, loop=None):
self.protocol = None<EOL>self.next_id = <NUM_LIT:1><EOL>self.inflight = {}<EOL>self.subscriptions = defaultdict(list)<EOL>self.actual_connection = {}<EOL>self.ka_task = None<EOL>self.loop = loop or asyncio.get_event_loop()<EOL>self.reconnect = None<EOL>
Setup state needed to handle req/resp from a single Stratum server.
Requires a transport (TransportABC) object to do the communication.