JsonNode* cometd_recv(const cometd* h) { JsonNode *payload = NULL; cometd_transport* transport = NULL; transport = cometd_current_transport(h); g_assert(transport != NULL); payload = transport->recv(h); if (payload == NULL) payload = cometd_msg_wrap(cometd_msg_bad_connect_new(h)); return payload; }
JsonNode* cometd_msg_wrap_copy(JsonNode* msg) { return cometd_msg_wrap(json_node_copy(msg)); }