Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@jamiecurnow/signalr-no-jquery
Advanced tools
Readme
SignalR JS Client with shimmed jQuery not polluting global namespace
Forked from tehcojam/signalr-no-jquery.
Modified to work with "typescript": "^4.6.3"
and Webpack 5 in a Vue project. Fixes an error with export
being undefined by removing
"type": "module"
from the package.json
TypeScript typings was taken from DefinitelyTyped repo.
jQuery shim borrowed from react-native-signalR
This version of signalR client doesn't add jQuery to window
object but imports jQueryShim locally to signalR and exports hubConnection
. jQueryShim file contains only bare-minimum of jQuery to make signalR client run.
This package is not meant to be used with ASP.NET Core version of SignalR.
npm i -D @jamiecurnow/signalr-no-jquery
import { hubConnection } from '@jamiecurnow/signalr-no-jquery';
Use just like regular signalR but without $ namespace
const connection = hubConnection('http://[address]:[port]', options);
const hubProxy = connection.createHubProxy('hubNameString');
// set up event listeners i.e. for incoming "message" event
hubProxy.on('message', function(message) {
console.log(message);
});
// connect
connection.start({ jsonp: true })
.done(function(){ console.log('Now connected, connection ID=' + connection.id); })
.fail(function(){ console.log('Could not connect'); });
FAQs
JavaScript SignalR client without jQuery dependency
The npm package @jamiecurnow/signalr-no-jquery receives a total of 3 weekly downloads. As such, @jamiecurnow/signalr-no-jquery popularity was classified as not popular.
We found that @jamiecurnow/signalr-no-jquery 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.