socket.io-kafkajs
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

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

Package Sidebar

Install

npm i socket.io-kafkajs

Weekly Downloads

18

Version

3.0.2

License

MIT

Unpacked Size

12.2 kB

Total Files

6

Last publish

Collaborators

  • manhnx