Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@microsoft/signalr-protocol-msgpack
Advanced tools
MsgPack Protocol support for ASP.NET Core SignalR
MsgPack support for SignalR for ASP.NET Core
npm install @microsoft/signalr-protocol-msgpack
# or
yarn add @microsoft/signalr-protocol-msgpack
To try previews of the next version, use the next
tag on NPM:
npm install @microsoft/signalr-protocol-msgpack@next
# or
yarn add @microsoft/signalr-protocol-msgpack@next
See the SignalR Documentation at learn.microsoft.com for documentation on the latest release. API Reference Documentation is also available on learn.microsoft.com.
To use the client in a browser, copy *.js
files from the dist/browser
folder to your script folder include on your page using the <script>
tag.
To use the client in a NodeJS application, install the package to your node_modules
folder and use require('@microsoft/signalr-protocol-msgpack')
to load the module. The object returned by require('@microsoft/signalr-protocol-msgpack')
has the same members as the global signalR.protocols.msgpack
object (when used in a browser).
let connection = new signalR.HubConnectionBuilder()
.withUrl("/chat")
.withHubProtocol(new signalR.protocols.msgpack.MessagePackHubProtocol())
.build();
connection.on('send', data => {
console.log(data);
});
connection.start()
.then(() => connection.invoke('send', 'Hello'));
const signalR = require("@microsoft/signalr");
const signalRMsgPack = require("@microsoft/signalr-protocol-msgpack");
let connection = new signalR.HubConnectionBuilder()
.withUrl("/chat")
.withHubProtocol(new signalRMsgPack.MessagePackHubProtocol())
.build();
connection.on('send', data => {
console.log(data);
});
connection.start()
.then(() => connection.invoke('send', 'Hello'));
FAQs
MsgPack Protocol support for ASP.NET Core SignalR
The npm package @microsoft/signalr-protocol-msgpack receives a total of 14,106 weekly downloads. As such, @microsoft/signalr-protocol-msgpack popularity was classified as popular.
We found that @microsoft/signalr-protocol-msgpack demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.