UNPKG

firebase-fcm-v1-http2

Version:

A Node.js library for sending push notifications using Firebase Cloud Messaging HTTP v1 APIs.

23 lines (18 loc) 506 B
import * as http2 from 'http2'; export interface ServiceAccount { project_id: string; client_email: string; private_key: string; } export interface ClientOptions { serviceAccount: ServiceAccount; maxConcurrentConnections?: number; maxConcurrentStreamsAllowed?: number; } export interface Message { token: string; [key: string]: any; } export interface CustomClientHttp2Session extends http2.ClientHttp2Session { unregisteredTokens: string[]; }