client/client.js
// take data and send it to websocket... we add the msg timestamp here
take data and send it to websocket... we add the msg timestamp here
take data and send it to websocket ... we add the msg timestamp here
function send2server(command, data) {
    if (codeTest.client == null) {
        jQuery('#wsstatus').text(new Date().toLocaleTimeString() + ' NOT CONNECTED to [' + codeTest.config.server + ']');
        clearMessagePane();
        return false;
    }
    var ret = codeTest.client.send({
            command: command,
            data: [
                {
                    author: data.author,
                    channel: data.channel,
                    timestamp: Date.now(),
                    text: data.text
                }
            ]
        }
    );
    return true; 
}
function send2server ( command , data ) { if ( codeTest . client == null ) { jQuery ( '#wsstatus' ) . text ( new Date ( ) . toLocaleTimeString ( ) + ' NOT CONNECTED to [' + codeTest . config . server + ']' ) ; clearMessagePane ( ) ; return false ; } var ret = codeTest . client . send ( { command : command , data : [ { author : data . author , channel : data . channel , timestamp : Date . now ( ) , text : data . text } ] } ) ; return true ; }
take data and send it to websocket... we add the msg timestamp here
take data and send it to websocket ... we add the msg timestamp here
// the send doesnt return anything useful