Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@archetypical/auto-hub-connection
Advanced tools
AutoHubConnection is a simple wrapper to the .net core signalr client implementation. It automates the logic necessary to reconnecting after a unexpected disconnect.
Install globally via npm:
npm install -g @archetypical/auto-hub-connection
Or globally via yarn:
yarn global add @archetypical/auto-hub-connection
Once you have established your server side hub, you can connect to it with a new AutoHubConnection. It includes all the same methods provided by the signalr client with the same expected functionality.
In addition to the existing functionality, AutoHubConnection provides simple instantiation of a new connection and the logic to automatically reconnect when there is a network disconnect.
When creating a new AutoHubConnection, you must provide a host.
const autoHubConnection = new AutoHubConnection('/MyHubPath');
Optionally you can provide configuration settings used to change the reconnect behavior.
const autoHubConnection = new AutoHubConnection('/MyHubPath', {
logLevel: LogLevel.Error,
retryInterval: 3000,
maxConnectionAttempts: 5
});
logLevel: The log level the underlying signalr client will log at. Default value is LogLevel.Error
.
retryInterval: Defines the wait interval between connection attempts in milliseconds. Default value is 5000
.
maxConnectionAttempts: Max number of attempts to initiate a connection. Default value is 5
.
const autoHubConnection = new AutoHubConnection('/MyHubUrl');
autoHubConnection.on('EventName', x => console.log(x));
autoHubConnection.start();
For more detail on how to utilize the signalr client, please reference the official documentation.
FAQs
Auto reconnecting wrapper for SignalR client
The npm package @archetypical/auto-hub-connection receives a total of 21 weekly downloads. As such, @archetypical/auto-hub-connection popularity was classified as not popular.
We found that @archetypical/auto-hub-connection 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.