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

Method try_recv

src/net/websocket.rs:118–120  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

116 }
117
118 pub fn try_recv(&self) -> Option<WsMessage> {
119 self.rx.try_recv().ok()
120 }
121
122 pub fn close(&self) {
123 let _ = self.tx.send(OutgoingWsMessage::Close);

Callers 1

recvMethod · 0.45

Calls 2

ply_net_ws_try_recvFunction · 0.85
TextClass · 0.85

Tested by

no test coverage detected