Add WebSocket transport option for web bots#89
Merged
Conversation
Adds WebSocket as a selectable web-bot transport alongside Daily and SmallWebRTC, with both server and client support and coexistence in the same project. - Registry: new `websocket` ServiceDefinition (FastAPIWebsocketTransport + ProtobufFrameSerializer); regenerated `_imports.py`. - Server: new `bot_entry_websocket.jinja2`, wired into the WebSocketRunnerArguments case in the cascade and realtime bot templates. - Clients: websocket support in vanilla-js-vite (two-step startBot/connect), react-vite, and react-nextjs (per-transport props map driving PipecatAppBase via startBotParams + startBotResponseTransformer). React config typing switched to generic client-js types so configs compile regardless of selected transports. - Fixed: generated bots now call `await runner.run()` after adding workers, so the pipeline actually starts. - Changed: kick off the conversation with a developer-role message instead of a user-role "Please introduce yourself." message. - Tests + CHANGELOG updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds WebSocket as a selectable web-bot transport alongside Daily and SmallWebRTC, with both server and client support and coexistence in the same project.
websocketServiceDefinition (FastAPIWebsocketTransport + ProtobufFrameSerializer); regenerated_imports.py.bot_entry_websocket.jinja2, wired into the WebSocketRunnerArguments case in the cascade and realtime bot templates.await runner.run()after adding workers, so the pipeline actually starts.🤖 Generated with Claude Code