Hello, i am trying to remove a emit function with removeListener but i getting an error:
System.err: TypeError: r.removeListener is not a function System.err: File: "file:///data/data/org.nativescript.application/files/app/app.js, line: 1, column: 6442
I tried to declare "off" function in socketio.t.ds file but still, it does not work.
Here is the basic code:
socketIO = new SocketIO(url, options);
socketIO.removeListener('hello'); //socketIO.off('hello')
socketIO .on('hello',function(data){
})
Hello, i am trying to remove a emit function with removeListener but i getting an error:
System.err: TypeError: r.removeListener is not a function System.err: File: "file:///data/data/org.nativescript.application/files/app/app.js, line: 1, column: 6442
I tried to declare "off" function in socketio.t.ds file but still, it does not work. Here is the basic code: