packages/angular-sdk/src/ping.service.ts
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();
}
}