aiohttp.ClientSession may be used as a parent for a custom WebSocket class.
Python 3.x3.5
import asyncio
from aiohttp import ClientSession
class EchoWebSocket(ClientSession):
URL = "wss://echo.websocket.org"
def __init__(self):
super().__init__()
self....