All the other methods are working fine, but the foillowing code:
document.addEventListener(window.tlantic.plugins.socket.receiveHookName, function (ev) {
console.log(ev.metadata.host); // host who sent the data
console.log(ev.metadata.port); // sender port
console.log(ev.metadata.id); // connection id
console.log(ev.metadata.data); // received data
});
returns:
Uncaught TypeError: Cannot read property 'plugins' of undefined
All the other methods are working fine, but the foillowing code:
returns: