closeInteraction method

void closeInteraction(
  1. String interactionId
)

Implementation

void closeInteraction(String interactionId) {
  if (socket == null || !socket!.connected) {
    Logs.debug("⚠️ Cannot close interaction - socket not connected");
    return;
  }

  socket!.emit('event', {
    "interactionId": interactionId,
    "eventType": 'close-interaction',
    "appId": config.appId
  });
}