
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).
use-signalr-hub
Advanced tools
Easy to use React hook for signalR
Install using your preferred package manager:
npm install use-signalr-hub
yarn add use-signalr-hub
import signalR, { useSignalRHub } from "use-signalr-hub"
const signalRHub = useSignalRHub("/chathub", {
onConnected: (hub) => {
console.log("Connected to /chathub", hub)
hub.on("ReceiveMessage", (user, message) => {
setMessage({user, message})
})
},
onDisconnected: () => {
console.log("Disconnected from /chathub")
},
onError: (error) => {
console.log("Connection to /chathub failed with error", error)
}
})
const handleSubmit = (message, user) => {
signalRHub.invoke("SendMessage", user, message)
.catch((error) => {
console.log("Failed to invoke SendMessage on /chathub", error)
})
}
signalR.setDefaults({
httpTransportTypeOrOptions: {
accessTokenFactory: () => user.userData.token
},
automaticReconnect: false
})
useSharedSignalRHub
FAQs
Easy to use hook for signalr
The npm package use-signalr-hub receives a total of 67 weekly downloads. As such, use-signalr-hub popularity was classified as not popular.
We found that use-signalr-hub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.