agoo_ws_ping(agooCon c) {
    agooRes	res;

    if (NULL == (res = agoo_res_create(c))) {
	agoo_log_cat(&agoo_error_cat, "Memory allocation of response failed on connection %llu.", (unsigned long long)c->id);
    } else {
	res->close = false;
	res->con_kind = AGOO_CON_WS;
	res->ping = true;
	agoo_con_res_append(c, res);
    }
}
agoo_ws_ping(agooCon c) {
    agooRes	res;

    if (NULL == (res = agoo_res_create(c))) {
	agoo_log_cat(&agoo_error_cat, "Memory allocation of response failed on connection %llu.", (unsigned long long)c->id);
    } else {
	res->close = false;
	res->con_kind = AGOO_CON_WS;
	res->ping = true;
	agoo_con_res_append(c, res);
    }
}