Loading…

data tunnel

Table of contents on this page
The data in the tunnel is saved for `10 minutes`. If it exceeds this time and is not extracted, the data will automatically disappear; The data in the tunnel are arranged sequentially, following the first-in-first-out principle, and the first data is extracted from the head of the queue each time; #Write data to tunnel ```javascript WXAPI.channelDataPush(key, content) ``` + key custom tunnel encoding + content content sent to the tunnel ```json { "code": 0, "msg": "success" } ``` # Extract data from tunnel ```javascript WXAPI.channelDataPull(key) ``` + key custom tunnel encoding ```json { "code": 0, "data": "test", "msg": "success" } ``` + data is the content read in the tunnel