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

Method send_text

src/net/websocket.rs:72–77  ·  view source on GitHub ↗

Send a text message.

(&self, text: &str)

Source from the content-addressed store, hash-verified

70
71 /// Send a text message.
72 pub fn send_text(&self, text: &str) {
73 let mgr = super::NET_MANAGER.lock().unwrap();
74 if let Some(entry) = mgr.websockets.get(&self.id) {
75 entry.state.send_text(text);
76 }
77 }
78
79 /// Pop the next incoming message.
80 ///

Callers

nothing calls this directly

Calls 4

TextClass · 0.85
ply_net_ws_send_textFunction · 0.85
getMethod · 0.80
sendMethod · 0.80

Tested by

no test coverage detected