
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@pipecat-ai/websocket-transport
Advanced tools
Websocket transport package for use with @pipecat-ai/client-js.
npm install \
@pipecat-ai/client-js \
@pipecat-ai/websocket-transport
The WebSocketTransport class provides a Websocket transport layer establishing a connection with Pipecat WebSocketTransport. It handles audio device management and real-time communication between client and bot.
import { PipecatClient } from "@pipecat-ai/client-js";
import { WebSocketTransport } from "@pipecat-ai/websocket-transport";
const pcClient = new PipecatClient({
transport: new WebSocketTransport(),
enableMic: true, // Default microphone on
callbacks: {
// Event handlers
},
});
pcClient.connect({
ws_url: 'https://your.websocket/endpoint'
});
// OR...
pcClient.connect({
endpoint: 'https://your-server/connect', // endpoint to return ws_url
});
The transport can be in one of these states:
The transport implements the various Pipecat event handlers. Check out the docs or samples for more info.
The transport includes error handling for:
BSD-2 Clause
FAQs
Pipecat Base Transport for RealTime WebSocket APIs Package
The npm package @pipecat-ai/websocket-transport receives a total of 669 weekly downloads. As such, @pipecat-ai/websocket-transport popularity was classified as not popular.
We found that @pipecat-ai/websocket-transport demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.