Davidliu hai 3 meses
pai
achega
5d4ef7bef5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/callcenter/ws.py

+ 1 - 0
src/core/callcenter/ws.py

@@ -27,6 +27,7 @@ def listen_to_redis():
             user_id = data.get('user_id')
             event = data.get('event')
             payload = data.get('data')
+            print("user_id=%s, event=%s, data=%s" % (user_id, event, payload))
             # 通过 emit 广播消息到用户所在的房间
             # emit(event, payload, room=user_id, namespace='/ws/cs-im')
             socketio.emit(event, payload, room=user_id, namespace='/ws/cs-im')