Solve the error of Netease Yunxin IM's web-side message sending: the parameter "done" type is wrong, and the legal types include: [“function”]
1. Demand background
Recently, I am using the Netease Yunxin SDK to connect to the web-side IM message chat function. In the test environment, I found that the message in the chat cannot be sent out, and an error is thrown, as follows:
2. Solutions
Due to the lack of information on Netease Yunxin, it took an hour or two to solve this problem. At the beginning of the investigation, I thought it was a code problem, but after checking, no problem was found. Later, I found out that the SDK version of Netease Yunxin was too low . Yes, I used 8.11.0 before, and the official latest is 9.3.1 so far .