Skip to main content

QPort

Enables bidirectional query-response communication between components with automatic loop protection.

component image

In-ports

input <any> — Query input port (sends requests and receives responses).

Out-ports

output <any> — Query output port (receives requests and sends responses).

Overview

The QPort component provides a bidirectional communication channel that allows components to send queries and receive responses. It acts as a bridge between query clients and query servers, enabling request-response patterns within Kelp apps.

The component automatically handles data flow in both directions. When data enters the input port, it flows to the output port. When queries come back through the output port, they are routed to the input port. This creates a complete query-response cycle with built-in protection against infinite loops.

QPort is essential for implementing interactive communication patterns where one component needs to request information from another and receive a response. Unlike simple data streams that flow in one direction, QPort maintains the context of requests and their corresponding responses.

Settings

This component requires no additional configuration.

Error Handling

Errors are passed through the query channels in both directions, maintaining error context throughout the query-response cycle.