I have tried with:
try {
const netConnection = await rtmp.connect(config, PlainHandshake,...arg);
netConnection.receive_pvt = (msg) => console.log(msg);
} catch(e) {
console.log(e)
}
But I only get: Maximum call stack size exceeded...
Maximum call stack size exceeded occurs when I receive an object? How can I solve it?
I have tried with:
try {
const netConnection = await rtmp.connect(config, PlainHandshake,...arg);
netConnection.receive_pvt = (msg) => console.log(msg);
} catch(e) {
console.log(e)
}
But I only get: Maximum call stack size exceeded...
Maximum call stack size exceeded occurs when I receive an object? How can I solve it?