notifyConnectanumMethod method

Future<void> notifyConnectanumMethod(
  1. String method, {
  2. McpJsonMap params = const <String, Object?>{},
  3. bool streamable = true,
  4. String? protocolVersion,
  5. Map<String, String> headers = const <String, String>{},
})

Sends a Connectanum JSON method notification through the MCP session.

Implementation

Future<void> notifyConnectanumMethod(
  String method, {
  McpJsonMap params = const <String, Object?>{},
  bool streamable = true,
  String? protocolVersion,
  Map<String, String> headers = const <String, String>{},
}) {
  return notification(
    method,
    params: params,
    streamable: streamable,
    protocolVersion: protocolVersion,
    headers: _headersWithConnectanumMethodParameterHeaders(
      method,
      params,
      headers,
    ),
  );
}