How do I obtain tracker_store in socket.io channel?

When I customize the rest channel, I use the code in the red box below to get some data in tracker. I am operating the rasa2.8.6 source code. But I don’t know how to get the current tracker_store in socket. io channel, because I need more data than just text information, Does anyone know how to get it?

You don’t need to modify the channel code to read/write the tracker (and it’s not best practice to do this in the channel).

I use the code in the red box below to get some data in tracker

I’m not sure what you are trying to retrieve from the tracker store? Are you familiar with action_session_start?

Continuing the discussion from How do I obtain tracker_store in socket.io channel?:

@stephens I’m doing this because I’m trying to customize the socket. io channel, and I’m not going to modify the source code. I want to get current_state in the following data in tracker_store, which I got in the REST channel. What I want to achieve is that when a request comes in, the channel outputs not only the text information of the robot, but also some entities, intent rankings and so on, so that it can be analyzed easily. I don’t know how to retrieve tracker_store in the custom socket.io channel, and I haven’t used action_session_start much.

[
    {
        "recipient_id": "test_user",
        "text": "1、登在校园招聘板块内的职位信息才适用于应届毕业生招聘,请所有的应届毕业生去校园招聘的版块寻找您感兴趣的职位。2、列出的每个职位的要求是该职位的最低要求,为了保证您应聘的成功率,希望您严格按照职位的要求考虑您的选择。3、提交成功后,在招聘结束前,您将不能修改或再次提交简历,因此,请于仔细确认填写信息后提交简历。",
        "current_state": {
            "sender_id": "test_user",
            "slots": {
                "session_started_metadata": null
            },
            "latest_message": {
                "intent": {
                    "id": -6800824503355396010,
                    "name": "knowledge",
                    "confidence": 1.0
                },
                "entities": [],
                "text": "校园招聘",
                "message_id": "b8d5af5731d44007903d5e66d8a928a8",
                "metadata": {},
                "intent_ranking": [
                    {
                        "id": -6800824503355396010,
                        "name": "knowledge",
                        "confidence": 1.0
                    },
                    {
                        "id": 5702619292738722829,
                        "name": "knowledge_second",
                        "confidence": 0.0000000044
                    }
                ],
                "response_selector": {
                    "all_retrieval_intents": [
                        "knowledge_second",
                        "knowledge"
                    ],
                    "default": {
                        "response": {
                            "id": 482569989668171160,
                            "responses": [
                                {
                                    "text": "1、登在校园招聘板块内的职位信息才适用于应届毕业生招聘,请所有的应届毕业生去校园招聘的版块寻找您感兴趣的职位。2、列出的每个职位的要求是该职位的最低要求,为了保证您应聘的成功率,希望您严格按照职位的要求考虑您的选择。3、提交成功后,在招聘结束前,您将不能修改或再次提交简历,因此,请于仔细确认填写信息后提交简历。"
                                }
                            ],
                            "response_templates": [
                                {
                                    "text": "1、登在校园招聘板块内的职位信息才适用于应届毕业生招聘,请所有的应届毕业生去校园招聘的版块寻找您感兴趣的职位。2、列出的每个职位的要求是该职位的最低要求,为了保证您应聘的成功率,希望您严格按照职位的要求考虑您的选择。3、提交成功后,在招聘结束前,您将不能修改或再次提交简历,因此,请于仔细确认填写信息后提交简历。"
                                }
                            ],
                            "confidence": 0.8764670491,
                            "intent_response_key": "knowledge/knowledge_3",
                            "utter_action": "utter_knowledge/knowledge_3",
                            "template_name": "utter_knowledge/knowledge_3"
                        },
                        "ranking": [
                            {
                                "id": 482569989668171160,
                                "confidence": 0.8764670491,
                                "intent_response_key": "knowledge/knowledge_3"
                            },
                            {
                                "id": -273990896142957331,
                                "confidence": 0.0381353647,
                                "intent_response_key": "knowledge/knowledge_5"
                            },
                            {
                                "id": -5454426531615286654,
                                "confidence": 0.0311541315,
                                "intent_response_key": "knowledge/knowledge_7"
                            },
                            {
                                "id": -2498118768752336478,
                                "confidence": 0.0163200013,
                                "intent_response_key": "knowledge_second/knowledge_12"
                            },
                            {
                                "id": -8250422725007798455,
                                "confidence": 0.0144670447,
                                "intent_response_key": "knowledge/knowledge_8"
                            },
                            {
                                "id": -3344814350135719540,
                                "confidence": 0.0056919777,
                                "intent_response_key": "knowledge/knowledge_6"
                            },
                            {
                                "id": 7915654218310959660,
                                "confidence": 0.0050518503,
                                "intent_response_key": "knowledge_second/knowledge_16"
                            },
                            {
                                "id": 8705493946982670695,
                                "confidence": 0.0047641667,
                                "intent_response_key": "knowledge/knowledge_4"
                            },
                            {
                                "id": -49732691794653739,
                                "confidence": 0.0045755999,
                                "intent_response_key": "knowledge_second/knowledge_15"
                            },
                            {
                                "id": 1566172207466321740,
                                "confidence": 0.0033728082,
                                "intent_response_key": "knowledge/knowledge_10"
                            }
                        ]
                    }
                }
            },
            "latest_event_time": 1665106929.4287018776,
            "followup_action": null,
            "paused": false,
            "events": null,
            "latest_input_channel": "rest",
            "active_loop": {},
            "latest_action": {
                "action_name": "action_listen"
            },
            "latest_action_name": "action_listen"
        }
    }
]