npm @socket.io/redis-emitter 5.1.0

22 months ago

Features

  • add option to allow usage of custom parser (#121) (48bdd87)
import { Emitter } from "@socket.io/redis-emitter";
import { createClient } from "redis";

const redisClient = createClient();

await redisClient.connect();

const io = new Emitter(redisClient, {
  parser: {
    encode(msg) {
      return JSON.stringify(msg);
    }
  }
});

Links

Don't miss a new redis-emitter release

NewReleases is sending notifications on new releases.