interface.js icon indicating copy to clipboard operation
interface.js copied to clipboard

Incorrect error message when OSC socket not connected

Open t3kt opened this issue 10 years ago • 0 comments

The OSC.send function is currently implemented as follows: if( this.socket.readyState === 1) { [.......] }else{ console.log("INVALID OSC MESSAGE FORMATION", arguments); } }

and when the socket is ready, it does: if(typeof _address === 'string' && typeof _typetags === 'string') { ... }else{ console.log( 'socket is not yet connected...' ) }

That means that if socket.readyState != 1, it says "invalid osc message..." and if the message is invalid, it says "socket is not yet connected...".

t3kt avatar Feb 03 '16 21:02 t3kt