Skip to main content


vctx:get — Get the value of a context variable


vctx:get(type, key);

type: numeric
key: string


Get the value of a context variable. The type parameter can be either msys.core.VCTX_MESS or msys.core.VCTX_CONN. The key parameter is the name of the context variable that you wish to retrieve.

Because this function is in the msys.core namespace, an explicit require('msys.core') is not necessary.

See Also

Was this page helpful?