7.0.3 • Published 8 days ago

eiows v7.0.3

Weekly downloads
721
License
MIT
Repository
github
Last release
8 days ago

eiows is a replacement module for ws which allows, but doesn't guarantee, significant performance and memory-usage improvements. This module is specifically only compatible with Node.js. This package is mainly meant for projects which depend on the performance of the “original uws package”. This package requires engine.io(3.4.2 or higher) and it should work on Node 16, 17, 18, 19, 20, 21, 22. Git should be installed on the system to build and compile the module. This module only runs on Linux/FreeBSD/MacOS.

Installation:

npm install eiows

or

yarn add eiows

Examples:

// ESM
import * as http from 'http';
import { Server } from "socket.io";
import { eiows } from 'eiows';

let server = http.createServer();

let io = new Server(server, {
    wsEngine: eiows.Server,
    perMessageDeflate: {
        threshold: 32768
    }
});

io.on("connection", () => {
    console.log('Yes, you did it!');
});
server.listen(8080);

// CJS
var http = require('http');
var server = http.createServer();

var io = require("socket.io")(server, {
    wsEngine: require("eiows").Server,
    perMessageDeflate: {
        threshold: 32768
    }
});

io.on("connection", function(socket) {
    console.log('Yes, you did it!');
});
server.listen(8080);

Have fun!

7.0.3

8 days ago

7.0.2

8 days ago

7.0.1

1 month ago

6.7.7

2 months ago

6.7.4

2 months ago

6.7.6

2 months ago

6.7.5

2 months ago

6.7.3

2 months ago

6.7.2

6 months ago

6.7.1

6 months ago

6.7.0

7 months ago

6.6.2

10 months ago

6.3.0

12 months ago

6.5.0

12 months ago

6.4.1

12 months ago

6.3.2

12 months ago

6.3.1

12 months ago

6.6.1

11 months ago

6.6.0

11 months ago

6.5.1

11 months ago

4.1.3

1 year ago

4.1.2

2 years ago

4.1.1

2 years ago

4.0.1

2 years ago

3.8.0

2 years ago

4.0.0

2 years ago

3.7.3

3 years ago

3.7.2

3 years ago

3.7.1

3 years ago

3.6.1

3 years ago

3.6.0

3 years ago

3.5.0

3 years ago

3.4.2

3 years ago

3.4.1

3 years ago

3.4.0

4 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0

4 years ago

3.2.4

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.4

4 years ago

3.1.2

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago