Skip to content

Instantly share code, notes, and snippets.

View A-d-i-t-h-y-a-n's full-sized avatar

Adithyan R A-d-i-t-h-y-a-n

View GitHub Profile
@A-d-i-t-h-y-a-n
A-d-i-t-h-y-a-n / monitor.js
Last active June 29, 2024 16:53 — forked from PurpShell/monitor.js
Monitor Socket messages on 2.3000x and above
if (!window.decodeBackStanza) {
window.decodeBackStanza = require("WAWap").decodeStanza;
window.encodeBackStanza = require("WAWap").encodeStanza;
}
require("WAWap").decodeStanza = async (e, t) => {
const result = await window.decodeBackStanza(e, t);
console.log('[INFO] coming from whatsapp, tag:', JSON.stringify(result))