
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
firebase-fcm-v1-http2
Advanced tools
A Node.js library for sending push notifications using Firebase Cloud Messaging HTTP v1 APIs.
This Node.js library provides a simple interface for sending push notifications using Firebase Cloud Messaging HTTP v1 APIs. It replaces deprecated FCM APIs with the latest HTTP v1 methods, ensuring compatibility and future-proofing for sending notifications.
Send multicast notifications using HTTP/2 multiplexing through the FCM HTTP v1 API.
Install the package via npm:
npm install firebase-fcm-v1-http2
Supported features:
- [X] HTTP/2 session & stream concurrency
- [X] Token batching support
- [X] Uninstall detection
- [X] Retry mechanism
Then, start using the package by importing and instantiating it:
const { Client } = require('firebase-fcm-v1-http2');
// Initialize Firebase Client
const firebaseClient = new Client({
serviceAccount: require('./path/to/serviceAccountKey.json'),
// Add optional configurations here
});
// Send a notification to multiple devices
const message = {
notification: {
title: "Test Notification",
body: "This is a test message"
},
data: {}
};
const tokens = ['device_token_1', 'device_token_2'];
firebaseClient.sendMulticast(message, tokens)
.then(unregisteredTokens => {
console.log('Unregistered tokens:', unregisteredTokens);
})
.catch(error => {
console.error('Error sending notification:', error);
});
Apache 2.0
FAQs
A Node.js library for sending push notifications using Firebase Cloud Messaging HTTP v1 APIs.
The npm package firebase-fcm-v1-http2 receives a total of 33 weekly downloads. As such, firebase-fcm-v1-http2 popularity was classified as not popular.
We found that firebase-fcm-v1-http2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.