Kinvey/js-sdk

View on GitHub
packages/angular-sdk/src/ping.service.ts

Summary

Maintainability
A
2 hrs
Test Coverage
import { Injectable, Inject } from '@angular/core';
import { init, ping } from 'kinvey-html5-sdk';
import { KinveyConfigToken } from './utils';

@Injectable({
  providedIn: 'root'
})
export class PingService {
  constructor(@Inject(KinveyConfigToken) config: any) {
    init(config);
  }

  ping(): Promise<any> {
    return ping();
  }
}