修正回调函数执行顺序

This commit is contained in:
2023-10-01 02:42:59 +08:00
parent 30f38e4f3a
commit 980ffb778a
2 changed files with 29 additions and 22 deletions

View File

@@ -89,6 +89,7 @@
// 只有一个基本信道, 用于交换和调度信息
clientList.setChannel('base', {
onopen: async event => {
console.log('打开信道', event.target.label)
// 要求对方发送音乐列表
clientList.send('base', JSON.stringify({ type: 'get_music_list' }))
},