feat(clients): live: Gemini Live API over WebSocket, RFC 6455 client, session, relay, discovery check
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// Route: GET /agent/live (mobile-first Live API page, no credential needed)
|
||||
#include "support/GoogleRig.hpp"
|
||||
|
||||
using namespace molo::example::test;
|
||||
|
||||
int main() {
|
||||
GoogleRig rig(false);
|
||||
Fixture f(rig.client);
|
||||
auto res = f.client->get("/agent/live");
|
||||
check(res.status == 200, "status 200 without a credential");
|
||||
check(contains(res.headers.get("Content-Type"), "text/html"), "html");
|
||||
check(contains(res.body, "Live API") && contains(res.body, "l-create"), "page body");
|
||||
check(contains(res.body, "/embedded/agent_live.js"), "script referenced");
|
||||
check(contains(res.body, "viewport"), "responsive meta from the base template");
|
||||
check(contains(f.client->get("/").body, "/agent/live"), "listed in the feature matrix");
|
||||
check(f.client->post("/agent/live").status == 405, "post is 405");
|
||||
check(rig.mock->send_count() == 0, "side effect: no upstream traffic");
|
||||
return finish("agent/live");
|
||||
}
|
||||
Reference in New Issue
Block a user