ti-websocket-client
ti-websocket-client copied to clipboard
JSlint errors left
First of all, great work!!! I'm really looking forward to see this integrated with socket.io. I've seen that you've fixed some JSlint errors, I've found some more:
You're creating arrays like this: var words = new Array(size); JSlint recommends using array literal notation, and javascript doesn't need an array size, it will be incremented automatically.
So you could just do: var words = [];
Besides that there are some variable undefined (j, _base64_keyStr, str, reason) And some node.js/browser methods left that should be replaced with titanium methods (console.error, console.trace) And some comma's that should be remove (behind type: Ti.Codec.TYPE_BYTE)