MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / encode_v2_batch

Method encode_v2_batch

crates/client-api/src/routes/subscribe.rs:1522–1527  ·  view source on GitHub ↗

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>,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers 1

encode_batchMethod · 0.80

Calls 1

encode_binary_batchMethod · 0.80

Tested by

no test coverage detected