Skip to content

Publish in the Future

The example demonstrates scheduling a message to be delivered on January 1st, 2030 at 00:00 Central time. The message is published into the demo channel:

var channel = "demo",
    message = "Happy New Year!",
    pubOps = null,
    deliveryOps = new Backendless.DeliveryOptions({
        publishAt: 1893477600000
    });

Backendless.Messaging.publish( channel, message, pubOps, deliveryOps )
 .then( function( response ) {
  })
 .catch( function( error ) {
  });