Remove the RTVIServerMessage logic from the RTVIProcessor

This commit is contained in:
Mark Backman
2025-02-27 12:50:43 -05:00
parent 26c68ccd7c
commit 53d403af4b
2 changed files with 3 additions and 11 deletions

View File

@@ -11,9 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a new frame, `ServerMessageFrame`, and RTVI message `RTVIServerMessage`
which provides a generic mechanism for sending custom messages from server to
client. The `ServerMessageFrame` can be processed by either a `RTVIProcessor`
or `RTVIObserver` and will be delivered to the client's `onServerMessage`
callback.
client. The `ServerMessageFrame` is processed by the `RTVIObserver` and will
be delivered to the client's `onServerMessage` callback or `ServerMessage`
event.
## [0.0.58] - 2025-02-26

View File

@@ -905,11 +905,6 @@ class RTVIProcessor(FrameProcessor):
async def handle_message(self, message: RTVIMessage):
await self._message_queue.put(message)
async def _handle_server_message(self, frame: ServerMessageFrame):
"""Handle server message frame by converting it to a transport message."""
message = RTVIServerMessage(data=frame.data)
await self._push_transport_message(message)
async def handle_function_call(
self,
function_name: str,
@@ -949,9 +944,6 @@ class RTVIProcessor(FrameProcessor):
await self.push_frame(frame, direction)
elif isinstance(frame, TransportMessageUrgentFrame):
await self._handle_transport_message(frame)
elif isinstance(frame, ServerMessageFrame):
await self._handle_server_message(frame)
await self.push_frame(frame, direction)
# All other system frames
elif isinstance(frame, SystemFrame):
await self.push_frame(frame, direction)