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

Function ply_net_http_try_recv

js/net.js:59–66  ·  view source on GitHub ↗
(cid)

Source from the content-addressed store, hash-verified

57}
58
59function ply_net_http_try_recv(cid) {
60 if (ply_net_http_requests[cid] !== undefined && ply_net_http_requests[cid] !== null) {
61 var data = ply_net_http_requests[cid];
62 ply_net_http_requests[cid] = null;
63 return js_object(data);
64 }
65 return -1;
66}
67
68// --- WebSocket ---
69// Supports multiple simultaneous sockets keyed by integer ID.

Callers 1

try_recvMethod · 0.85

Calls 1

js_objectFunction · 0.85

Tested by

no test coverage detected