Merge pull request #4176 from pipecat-ai/mb/fix-websocket-rtvi-messages

Fix RTVI events not delivered over WebSocket transports
This commit is contained in:
Mark Backman
2026-03-27 16:50:37 -04:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

1
changelog/4176.fixed.md Normal file
View File

@@ -0,0 +1 @@
- Fixed RTVI events not being delivered to clients when using WebSocket transports. `ProtobufFrameSerializer` now sets `ignore_rtvi_messages=False` by default.

View File

@@ -68,6 +68,11 @@ class ProtobufFrameSerializer(FrameSerializer):
params: Configuration parameters.
"""
super().__init__(params)
# The base serializer defaults to filtering out RTVI protocol messages
# to avoid sending them over telephony media streams. ProtobufFrameSerializer
# is used by WebSocket transports, which are the delivery channel for
# these messages, so we disable the filter.
self._params.ignore_rtvi_messages = False
async def serialize(self, frame: Frame) -> str | bytes | None:
"""Serialize a frame to Protocol Buffer binary format.