MCPcopy Create free account
hub / github.com/JaveleyQAQ/WeChatOpenDevTools-Python / onMessage

Method onMessage

utils/commons.py:18–22  ·  view source on GitHub ↗
(self, message, data)

Source from the content-addressed store, hash-verified

16 self.active_sessions = []
17
18 def onMessage(self, message, data):
19 if message['type'] == 'send':
20 print(Color.GREEN + message['payload'], Color.END)
21 elif message['type'] == 'error':
22 print(Color.RED + message['stack'], Color.END)
23
24 def inject_wechatEx(self, pid, code):
25 try:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected