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

socket.io

Package Overview
Dependencies
Maintainers
2
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socket.io - npm Package Compare versions

Comparing version 2.3.0 to 3.0.0-rc1

CHANGELOG.md

43

package.json
{
"name": "socket.io",
"version": "2.3.0",
"version": "3.0.0-rc1",
"description": "node.js realtime framework server",

@@ -14,6 +14,12 @@ "keywords": [

],
"main": "./lib/index",
"files": [
"lib/"
"dist/"
],
"type": "commonjs",
"main": "./dist/index.js",
"exports": {
"import": "./wrapper.mjs",
"require": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"license": "MIT",

@@ -25,18 +31,32 @@ "repository": {

"scripts": {
"test": "nyc mocha --reporter spec --slow 200 --bail --timeout 10000 test/socket.io.js"
"test": "npm run format:check && tsc && nyc mocha --require ts-node/register --reporter spec --slow 200 --bail --timeout 10000 test/socket.io.ts",
"format:check": "prettier --check 'lib/**/*.ts' 'test/**/*.ts'",
"format:fix": "prettier --write 'lib/**/*.ts' 'test/**/*.ts'",
"prepack": "tsc"
},
"dependencies": {
"base64id": "~2.0.0",
"debug": "~4.1.0",
"engine.io": "~3.4.0",
"engine.io": "~4.0.0",
"has-binary2": "~1.0.2",
"socket.io-adapter": "~1.1.0",
"socket.io-client": "2.3.0",
"socket.io-parser": "~3.4.0"
"socket.io-adapter": "~2.0.1",
"socket.io-client": "3.0.0-rc1",
"socket.io-parser": "4.0.1-rc1"
},
"devDependencies": {
"@types/cookie": "^0.4.0",
"@types/cors": "^2.8.7",
"@types/mocha": "^8.0.3",
"@types/node": "^14.11.2",
"babel-eslint": "^10.1.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"expect.js": "0.3.1",
"mocha": "^3.5.3",
"nyc": "^11.2.1",
"prettier": "^1.19.1",
"superagent": "^3.8.2",
"supertest": "^3.0.0"
"supertest": "^3.0.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
},

@@ -60,3 +80,6 @@ "contributors": [

}
]
],
"engines": {
"node": ">=10.0.0"
}
}

@@ -67,3 +67,3 @@

Browser support is tested in Saucelabs:
Browser support is tested in Sauce Labs:

@@ -142,6 +142,21 @@ [![Sauce Test Status](https://saucelabs.com/browser-matrix/socket.svg)](https://saucelabs.com/u/socket)

### In conjunction with Fastify
To integrate Socket.io in your Fastify application you just need to
register `fastify-socket.io` plugin. It will create a `decorator`
called `io`.
```js
const app = require('fastify')();
app.register(require('fastify-socket.io'));
app.io.on('connection', () => { /* … */ });
app.listen(3000);
```
## Documentation
Please see the documentation [here](/docs/README.md). Contributions are welcome!
Please see the documentation [here](https://socket.io/docs/).
The source code of the website can be found [here](https://github.com/socketio/socket.io-website). Contributions are welcome!
## Debug / logging

@@ -148,0 +163,0 @@

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