3.0.2 • Published 3 years ago

socket.io-kafkajs v3.0.2

Weekly downloads
38
License
MIT
Repository
github
Last release
3 years ago

socket.io-kafkajs

Install

npm i socket.io-kafkajs

Use Adapter

import http from "http";
import { Server } from "socket.io";
import { createAdapter } from "socket.io-kafkajs";

const httpServer = http.createServer(app);
const io = new Server(httpServer);

const adapter = createAdapter({
    brokers: "localhost:9092",
    clientId: "SocketIO",
    groupId: "SocketIO",
    topic: "SocketIO",
});

io.adapter(adapter);

Option Config

Read package kafkajs

Support version

socket.io-kafkajs 2.x -- support -- socket.io 2.x

socket.io-kafkajs 3.x -- support -- socket.io 3.x

Similar Packages

socket.io-redis

socket.io-kfk

License

MIT

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

1.0.9

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago