我正在使用promise-mysql在MySQL服务器上执行可等待的操作。目前我有一个简单的配置: let pool = await mysql.createPool(dbConfig); /// some querying using the connection follows 然而,似乎只有一个连接<
//then when person clicks disconnect, I do:socket = null;
我不想写所有的代码,因为代码太多了,我试着让它尽可能的简单基本上,socket在我单击disconnect后仍处于断开状态。但是如果我再次单击连接,套接字仍然保持断开连接状态,因为我对其执行了console.log操作,并显示套接字已断开连接= true和socket con