
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@agentick/client-multiplexer
Advanced tools
Multi-tab connection multiplexer for Agentick client. Reduces server connections by sharing a single SSE connection across all browser tabs.
npm install @agentick/client-multiplexer
# or
pnpm add @agentick/client-multiplexer
import { createClient } from "@agentick/client";
import { createSharedTransport } from "@agentick/client-multiplexer";
// Create client with shared transport
const client = createClient({
baseUrl: "/api",
transport: createSharedTransport({ baseUrl: "/api", token: "your-token" }),
});
// Use exactly like a regular client
const session = client.session("main");
session.subscribe();
session.onEvent((event) => console.log(event));
const handle = session.send("Hello!");
await handle.result;
The multiplexer uses browser tab leader election to ensure only one tab maintains the actual server connection:
Creates a shared transport instance. Supports both SSE and WebSocket transports.
import { createSharedTransport, type SharedTransportConfig } from "@agentick/client-multiplexer";
// SSE transport (default for http:// URLs)
const sseTransport = createSharedTransport({
baseUrl: "https://api.example.com",
token: "your-auth-token", // Optional
timeout: 30000, // Optional
withCredentials: true, // Optional
});
// WebSocket transport (default for ws:// URLs)
const wsTransport = createSharedTransport({
baseUrl: "wss://api.example.com",
token: "your-auth-token",
clientId: "my-client", // Optional
reconnect: {
// Optional
enabled: true,
maxAttempts: 5,
delay: 1000,
},
});
// Explicit transport selection
const explicitTransport = createSharedTransport({
baseUrl: "https://api.example.com",
transport: "websocket", // Force WebSocket even with http:// URL
});
The transport implements ClientTransport from @agentick/client plus additional properties:
// Check leadership status
transport.isLeader; // boolean
// Get unique tab identifier
transport.tabId; // string
// Listen for leadership changes
transport.onLeadershipChange((isLeader) => {
console.log(isLeader ? "This tab is now the leader" : "Leadership transferred");
});
import { createClient, type ClientTransport } from "@agentick/client";
import { createSharedTransport, type SharedTransport } from "@agentick/client-multiplexer";
const client = createClient({
baseUrl: "/api",
transport: createSharedTransport({ baseUrl: "/api" }),
});
// Access the transport for leadership info
const transport = client.getTransport() as SharedTransport | undefined;
console.log("Is leader:", transport?.isLeader);
┌─────────────────────────────────────────────────────────────────────┐
│ Browser Tabs │
├──────────────────┬──────────────────┬──────────────────────────────┤
│ Tab 1 │ Tab 2 │ Tab 3 │
│ (Leader) │ (Follower) │ (Follower) │
│ │ │ │
│ SharedTransport │ SharedTransport │ SharedTransport │
│ │ │ │ │ │ │
│ │ │ │ │ │ │
│ ┌───▼───┐ │ ┌───▼───┐ │ ┌───▼───┐ │
│ │ SSE │ │ │Bridge │ │ │Bridge │ │
│ │ Conn │ │ │ Only │ │ │ Only │ │
│ └───┬───┘ │ └───┬───┘ │ └───┬───┘ │
│ │ │ │ │ │ │
└──────┼───────────┴──────┼───────────┴──────┼───────────────────────┘
│ │ │
│ ◄─────────────┴──────────────────┘
│ BroadcastChannel
│
▼
┌───────┐
│Server │
└───────┘
When the leader tab closes:
leader:ready messageISC
FAQs
Multi-tab connection multiplexer for Agentick client
We found that @agentick/client-multiplexer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.