📅  最后修改于: 2022-03-11 15:01:08.145000             🧑  作者: Mango
async function doesSocketAgree(){
await new Promise(resolve => {
socket.emit('doesOtherSocketAgree', otherSocketId, (answer) => {
resolve(answer);
});
});
}