Closed odubuc closed 6 years ago
atm no but i will add it
@triniwiz @odubuc this is my temp destroy if its something you're looking for
destroy() {
if (SocketClass._socket) {
SocketClass._socket.disconnect()
if (application.ios) {
SocketClass._socket.instance.removeAllHandlers()
} else if (application.android) {
SocketClass._socket.instance.close()
}
SocketClass._socket = null
}
}
lulz
@roblav96 there is a .off()
just need to wire it up :smiley: thanks anyhow
@triniwiz Is it possible to off
a specific function like socketIO.off(event,callbackRef);
?
Is there any way to unbind an event?
from:
socketIO.on(event, callback);
to:
socketIO.removeListener(event, callback);
(like socketio)or simply:
socketIO.off(event,callback);