subscribe_key : 'demo',
        ssl           : false,
        origin        : 'pubsub.pubnub.com'
    });

    // ----------------------------------------------
    // Establish a Connection
    // ----------------------------------------------
    log('Opening a Connection.');
    pubnub.subscribe({
        channel  : channel,
        connect  : ready,
        callback : receive
    });

    // ----------------------------------------------
    // Connection Is Open Now and Ready
    // ------------------