
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@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
The npm package @agentick/client-multiplexer receives a total of 307 weekly downloads. As such, @agentick/client-multiplexer popularity was classified as not popular.
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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.