channel.bind("pusher:subscription_error", (error) => {

  var { status } = error;
 
  if (status == 408 || status == 503) {