Skip to content

Commit

Permalink
🩹 Fix WebSocket callback function required keyword (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 authored Apr 5, 2024
1 parent 416813a commit 08ad82a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/event_handling/websocket_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ async def subscribe(
if topic:
subscribed_topic += f":{topic}"

async def callback(data: str, _: str) -> None:
async def callback(data: str, topic: str) -> None:
"""
Callback function for handling received webhook events.
"""
logger.debug("Handling Websocket callback on topic: {}", topic)
await websocket.send_text(data)

client = PubSubClient()
Expand Down

0 comments on commit 08ad82a

Please sign in to comment.