mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 19:51:02 +02:00
Fix callable error
This commit is contained in:
parent
d93d1896c0
commit
d156b2ae16
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue