Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aspnet/signalr-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aspnet/signalr-client - npm Package Compare versions

Comparing version 1.0.0-alpha2-final to 1.0.0-alpha2-update1

46

package.json
{
"name": "@aspnet/signalr-client",
"version": "1.0.0-alpha2-final",
"description": "ASP.NET Core SignalR",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
"directories": {
"test": "test"
},
"version": "1.0.0-alpha2-update1",
"description": "This package has been deprecated. Use '@aspnet/signalr' instead.",
"main": "index.js",
"scripts": {
"gulp": "gulp",
"pretest": "tsc -p Microsoft.AspNetCore.SignalR.Client.TS.Tests",
"test": "jasmine JASMINE_CONFIG_PATH=Microsoft.AspNetCore.SignalR.Client.TS.Tests/jasmine.json"
"install": "echo \"This package has been deprecated. Use '@aspnet/signalr' instead.\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aspnet/SignalR.git"
},
"author": "Microsoft",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/aspnet/SignalR/issues"
},
"homepage": "https://github.com/aspnet/SignalR#readme",
"devDependencies": {
"@types/msgpack5": "^3.4.0",
"babel-minify": "^0.2.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babelify": "^7.3.0",
"browserify": "^13.1.1",
"buffer": "^5.0.7",
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-babel": "^7.0.0",
"gulp-rename": "^1.2.2",
"gulp-typescript": "^3.1.3",
"jasmine": "^2.5.2",
"lodash": "^4.17.4",
"typescript": "^2.0.10",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^1.1.0"
},
"dependencies": {
"msgpack5": "^3.5.0"
}
"license": "Apache-2.0"
}

@@ -1,34 +0,3 @@

JavaScript and TypeScript clients for SignalR for ASP.NET Core
# DEPRECATED
## Installation
```bash
npm install @aspnet/signalr-client
```
## Usage
### Browser
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.
### Node.js
The following polyfills are required to use the client in Node.js applications:
- `XmlHttpRequest` - always
- `WebSockets` - to use the WebSockets transport
- `EventSource` - to use the ServerSentEvents transport
- `btoa/atob` - to use binary protocols (e.g. MessagePack) over text transports (ServerSentEvents)
### Example
```JavaScript
let connection = new signalR.HubConnection('/chat');
connection.on('send', data => {
console.log(data);
});
connection.start()
.then(() => connection.invoke('send', 'Hello'));
```
This package has been deprecated. Use `@aspnet/signalr` instead, and ensure you update your server packages to a version compatible with that client as well.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc