MCPcopy Create free account
hub / github.com/LUX-Core/lux / PollStart

Method PollStart

src/rpcserver.cpp:501–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499}
500
501void JSONRequest::PollStart() {
502 // send an empty space to the client to ensure that it's still alive.
503 assert(!isLongPolling);
504 req->WriteHeader("Content-Type", "application/json");
505 req->WriteHeader("Connection", "close");
506 req->Chunk(std::string(" "));
507 isLongPolling = true;
508}
509
510void JSONRequest::PollPing() {
511 assert(isLongPolling);

Callers

nothing calls this directly

Calls 2

WriteHeaderMethod · 0.80
ChunkMethod · 0.80

Tested by

no test coverage detected