{"library":"pusher-js-auth","type":"library","category":null,"description":"Pusher-js-auth is a client-side plugin designed to enhance the official `pusher-js` library by batching multiple private and presence channel authentication requests into a single HTTP call. This significantly improves performance and reduces network overhead when an application subscribes to numerous channels concurrently. The current stable version is 4.0.1, which is compatible exclusively with `pusher-js` versions 7.x and later. Older `pusher-js` versions (6.x and below) require the 3.x release of this plugin. While the project's release cadence is tied to major `pusher-js` updates, it provides a consistent solution for optimizing authentication workflows. Key differentiators include its seamless integration via the `authorizer` option in the `Pusher` client, and configurable `authDelay` for managing request timing. It requires a custom server-side authentication endpoint capable of processing batched channel names and returning a consolidated JSON response, which Pusher's server libraries can facilitate.","language":"javascript","status":"active","version":"4.0.1","tags":["javascript","pusher","client","auth","typescript"],"install":[{"cmd":"npm install pusher-js-auth","imports":["import { PusherBatchAuthorizer } from 'pusher-js-auth';","const { PusherBatchAuthorizer } = require('pusher-js-auth');"]},{"cmd":"yarn add pusher-js-auth","imports":[]},{"cmd":"pnpm add pusher-js-auth","imports":[]}],"homepage":"https://pusher.com","github":"https://github.com/dirkbonhomme/pusher-js-auth","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/pusher-js-auth","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/pusher-js-auth/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}