mirror of
https://github.com/mimamch/wa-multi-session.git
synced 2026-04-25 00:36:08 +03:00
[PR #55] [MERGED] fix(socket): correct event listener callback handling #64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mimamch/wa-multi-session/pull/55
Author: @Mazen-Almortada
Created: 8/20/2025
Status: ✅ Merged
Merged: 8/20/2025
Merged by: @mimamch
Base:
master← Head:master📝 Commits (1)
365f5a7fix(socket): correct event listener callback handling📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
src/Socket/index.ts(+3 -3)📄 Description
This commit resolves two bugs related to event listener callbacks in the socket handler:
onPairingCodelistener Was incorrectly using theON_MESSAGE_UPDATEDkey, which caused it to overwrite theonMessageUpdatelistener.onMessageUpdatelistener Was being called with two arguments (sessionId, data) instead of the single expecteddataobject, causing aTypeErrorfor consumers.Both issues have been corrected to ensure event listeners work as intended.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.