moo.shell.iac.encode_gmcp

moo.shell.iac.encode_gmcp(module, data)

Encode a GMCP subnegotiation frame for the given module name and data.

Per the GMCP spec the payload is the module name, a space, and the JSON-encoded value. Empty-value messages omit the JSON.

Return type:

bytes