undefined is not an object (evaluating 'n[l].apply')
Closed this issue · 3 comments
felippepuhle commented
jondubois commented
@felippepuhle Maybe one of your event handlers was undefined. For example:
socket.on('myEvent', undefined);
Then when the myEvent
event triggers, it tries to call the undefined
function.
felippepuhle commented
@jondubois unfortunately I couldn't find what's causing this yet, but only happens sometimes when the phone was idle and user try to open the app again...
Probably it's not this, 'cause I don't have any untracked event... only those that usually work without being idle previously
I made some changes on my authEngine
, don't know if will fix it yet.
Thanks!
felippepuhle commented
Found and fixed.
Apparently, a ping timeout was throwing an error and I had an undefined onError
here: socket.on('error', onError)
Thanks!