EnSync Engine Documentation Help

CONN Command

Syntax

CONN;CLIENT_ID=client_id

Parameters

Parameter

Description

Required

Example

CLIENT_ID

ID of the client initiating connection

Yes

client-123abc

Response

Success

+PASS:CONNECTED;CLIENT_ID=client-123abc

The response confirms that the connection is still active and includes the client ID.

Error

-FAIL:MISSING_PARAMETERS;MESSAGE=Missing required connection data. Ensure CLIENT_ID is passed
-FAIL:CLIENT_NOT_FOUND;MESSAGE=Client not found or session expired

Examples

Basic Connection Initiation

CONN;CLIENT_ID=client-123abc

Notes

  • The CONN command is used to establish a new connection to the EnSync system

  • After successful connection, the client can issue other commands like SUB and PUB

  • The connection remains active until explicitly closed or a timeout occurs

  • The CONN command is the entry point for all client interactions with EnSync

  • The client must provide a valid client ID for authentication

  • Subsequent CONN commands can be used to maintain the connection as a heartbeat

  • The system uses the client ID to track resources and manage the client session

Last modified: 07 October 2025