NPRPC docs

function get_call_context

C++

const CallContext &get_call_context()

The call being dispatched on this thread. Only valid inside a servant method; keep a copy of the token to use it after a co_await. Throws Exception elsewhere.

include/nprpc/session_context.h:104