Solve the error of Netease Yunxin IM's web-side message sending: the parameter done type is wrong, and the legal type includes [function]

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:
  • insert image description here
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 .
  • So the solution is to upgrade to v9.3.1+ .
  • solve.

Guess you like

Origin blog.csdn.net/qq_34917408/article/details/126285216