Mini Program failed to close websocket

Mini Program failed to close websocket
  • js (not in the project, I came up with a simple little demo)
   

the normal shutdown should be code 1000, but I just shut down normally, but the monitoring is 1006 abnormal shutdown. Ask for guidance ~
Mar.15,2022

when using websocket, in Mini Program, you can try [GoEasy] this websocket framework, which natively supports heartbeat, network disconnection, reconnection, and so on. The interface is also very simple, so it is not difficult to use.

Menu