UNPKG

socket.io-react-hooks-advanced

Version:

A modular and extensible React + Socket.IO hook library designed for real-world applications. Supports namespaced sockets, reconnection strategies, offline queues, latency monitoring, middleware, encryption, and more.

12 lines (11 loc) 392 B
import { EmitMiddleware, OnMiddleware } from "../context/SocketContext"; interface EncryptionPluginOptions { secretKey: string; encryptEvents?: string[]; decryptEvents?: string[]; } export declare const encryptionPlugin: ({ secretKey, encryptEvents, decryptEvents, }: EncryptionPluginOptions) => { emitMiddleware: EmitMiddleware; onMiddleware: OnMiddleware; }; export {};