mcpWampSubscribeOptions function
McpJsonMap
mcpWampSubscribeOptions({
- String? match,
- String? metaTopic,
- bool? getRetained,
- McpJsonMap custom = const <String, Object?>{},
Builds a JSON options map for Connectanum MCP WAMP subscribe helpers.
Standard WAMP option fields are emitted with canonical wire names, and
typed arguments override any same-named entries in custom.
Implementation
McpJsonMap mcpWampSubscribeOptions({
String? match,
String? metaTopic,
bool? getRetained,
McpJsonMap custom = const <String, Object?>{},
}) {
final options = <String, Object?>{...custom};
_putWampOption(options, 'match', match);
_putWampOption(options, 'meta_topic', metaTopic);
_putWampOption(options, 'get_retained', getRetained);
return options;
}