Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi committed Dec 6, 2024
1 parent a102986 commit 5ecfb98
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ const websocket = cartesia.tts.websocket({
});

try {
await websocket.connect({
// If using Node.js, you can pass a custom WebSocket constructor, such as from `ws`.
// This is not needed for browser usage, so you can call connect() without any arguments.
WebSocket: WS,
});
await websocket.connect();
} catch (error) {
console.error(`Failed to connect to Cartesia: ${error}`);
}
Expand Down

0 comments on commit 5ecfb98

Please sign in to comment.