Fix callable error

This commit is contained in:
Cyber MacGeddon 2025-06-24 09:53:44 +01:00
parent d93d1896c0
commit d156b2ae16

View file

@ -18,6 +18,12 @@ class WebSocketResponder:
"""Capture the response data"""
self.response = data
self.completed = True
async def __call__(self, data, final=False):
"""Make the responder callable for compatibility with requestor"""
await self.send(data)
if final:
self.completed = True
class MessageDispatcher: