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

Method send

src/net/websocket.rs:64–69  ·  view source on GitHub ↗

Send binary data.

(&self, data: &[u8])

Source from the content-addressed store, hash-verified

62impl WebSocket {
63 /// Send binary data.
64 pub fn send(&self, data: &[u8]) {
65 let mgr = super::NET_MANAGER.lock().unwrap();
66 if let Some(entry) = mgr.websockets.get(&self.id) {
67 entry.state.send_binary(data);
68 }
69 }
70
71 /// Send a text message.
72 pub fn send_text(&self, text: &str) {

Callers 13

ply_net_ws_send_binaryFunction · 0.80
ply_net_ws_send_textFunction · 0.80
ply_bundle.jsFile · 0.80
tFunction · 0.80
iFunction · 0.80
sFunction · 0.80
spawnFunction · 0.80
fire_httpFunction · 0.80
ws_connectFunction · 0.80
send_binaryMethod · 0.80
send_textMethod · 0.80

Calls 2

getMethod · 0.80
send_binaryMethod · 0.80

Tested by

no test coverage detected