Closed pavlovmike closed 12 years ago
Error from Chrome console: TypeError arguments: Array[2] 0: "indexOf" 1: null length: 2 proto: Array[0] get message: function getter() { [native code] } arguments: null caller: null length: 0 name: "getter" prototype: getter proto: function Empty() {} get stack: function getter() { [native code] } set message: function setter() { [native code] } set stack: function setter() { [native code] } arguments: null caller: null length: 1 name: "setter" prototype: setter proto: function Empty() {} type: "non_object_property_call" proto: Error
Hm I haven't seen that error. The line indirectly calls event handlers such as onmessage. So it may be error in your code for onmessage, onopen, etc.? Please search for "indexOf" in your code. Also, please see if you can reproduce the error in Chrome. If it reproduces in Chrome, it's likely an error in your code because web-socket-js simply uses native WebSocket in Chrome.
Ok I'll try to log to console in my onmessage handler
From time to time (no stable variants to recreate error) in WebSocket.__onFlashEvent I catch error somethimng like: "TypeError, cannot use property 'IndexOf' ..."
One time I caught it in function body, it were at next line WebSocket.instances[events[i].webSocketId].handleEvent(events[i]);