instance property

LaravelEcho get instance

Implementation

static LaravelEcho get instance {
  if (hasSocketInstance) {
    return socketInstance;
  } else if (hasPusherInstance) {
    return pusherInstance;
  } else {
    throw const StorageDatabaseException(
      'LaravelEcho instance has not initialized yet',
    );
  }
}