LiquidPlayer / LiquidCore

Node.js virtual machine for Android and iOS
MIT License
1.01k stars 127 forks source link

Microservice clear listener #148

Closed DhivinX closed 4 years ago

DhivinX commented 4 years ago

How to clear listener in NodeJS (MicroService) of LiquidCore.on()? In java it is possible by service.removeEventListener(), how do it in javascript node?

Can't see method LiquidCore.off() like in socket.io.

ericwlange commented 4 years ago

The LiquidCore javascript object is just an events object. You can call LiquidCore.removeListener().

DhivinX commented 4 years ago

Thanks this is it!