MCPcopy Create free account
hub / github.com/CL-lau/SQL-GPT / message_handler

Function message_handler

memory/redisHelper.py:143–144  ·  view source on GitHub ↗
(channel, message)

Source from the content-addressed store, hash-verified

141 redis_helper.execute_transaction(transaction_example)
142
143 def message_handler(channel, message):
144 print(f"Received message from channel {channel}: {message}")
145 redis_helper.subscribe("notifications", message_handler)
146
147 redis_helper.publish("notifications", "New message!")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected