Sockets
const io = new Server(httpServer, {
cors: { origin: '*' },
allowEIO3: true,
});origin: 'https://www.myfrontend.com'socket.emit('Webhook', { type: 'message', message: {
body,
status,
wa_id,
wam_id,
type,
created_at,
caption,
data,
outgoing,
changeStatus,
bot,
} });Última actualización