MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / send_binary

Method send_binary

src/net/websocket.rs:110–112  ·  view source on GitHub ↗
(&self, data: &[u8])

Source from the content-addressed store, hash-verified

108#[cfg(not(target_arch = "wasm32"))]
109impl WebSocketState {
110 pub fn send_binary(&self, data: &[u8]) {
111 let _ = self.tx.send(OutgoingWsMessage::Binary(data.to_vec()));
112 }
113
114 pub fn send_text(&self, text: &str) {
115 let _ = self.tx.send(OutgoingWsMessage::Text(text.to_owned()));

Callers 1

sendMethod · 0.80

Calls 2

ply_net_ws_send_binaryFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected