Skip to content

Commit

Permalink
fix: close and end callbacks not executed in the WeChat mini program (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
XL-YiBai authored Aug 7, 2023
1 parent 657ebc0 commit 15ff607
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/connect/wx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function bindEventHandler() {
})

socketTask.onClose(() => {
stream.emit('close')
stream.end()
stream.destroy()
})
Expand Down

0 comments on commit 15ff607

Please sign in to comment.