Interface OnWhatsappDisconnected

All Superinterfaces:
Listener

public interface OnWhatsappDisconnected extends Listener
  • Method Details

    • onDisconnected

      void onDisconnected(Whatsapp whatsapp, DisconnectReason reason)
      Called when the socket successfully disconnects from WhatsappWeb's WebSocket
      Specified by:
      onDisconnected in interface Listener
      Parameters:
      whatsapp - an instance to the calling api
      reason - the errorReason why the session was disconnected