Encode a batch for protocol v2. v2 uses the binary server-message schema, but each logical server message must still be sent as its own websocket message.
(
&mut self,
message_batch: &mut Vec<OutboundWsMessage>,
)
| 1520 | /// v2 uses the binary server-message schema, but each logical server |
| 1521 | /// message must still be sent as its own websocket message. |
| 1522 | async fn encode_v2_batch( |
| 1523 | &mut self, |
| 1524 | message_batch: &mut Vec<OutboundWsMessage>, |
| 1525 | ) -> Result<(), mpsc::error::SendError<Frame>> { |
| 1526 | self.encode_binary_batch(message_batch, BinaryPayloadMode::Single).await |
| 1527 | } |
| 1528 | |
| 1529 | /// Encode a batch for protocol v3. |
| 1530 | /// |
no test coverage detected