
    // ----------------------------------------------
    function send(message) {
        log('Starting to Send a Message.');
        pubnub.publish({
            channel : channel,
            message : message,
            callback : send_complete
        });
    }

    // ----------------------------------------------
    // Send Request Finished with Status
    // ----------------------------------------------
    function send_complete(details) {
        log('Message Sent Done.');
        log(details