Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-go): correct what EngineLoaded holds on an older gateway

Yudhi Armyndharis6501e570a7d4
diff --git a/sdk/go/types_session.go b/sdk/go/types_session.go
index d8376481d..dc0eb1b88 100644
--- a/sdk/go/types_session.go
+++ b/sdk/go/types_session.go
@@ -164,7 +164,8 @@ type SessionResponse struct {
// EngineLoaded reports whether the gateway holds a live engine for this session -- the
// precondition stop/logout/force-kill require and start refuses. Not derivable from Status:
// "disconnected" covers both a session mid automatic-reconnect (engine present) and one stopped
- // with no engine. Nil from a gateway that predates the field.
+ // with no engine. A gateway that predates the field omits it, which decodes as false; against
+ // such a gateway false does not mean no engine is loaded, so fall back to Status.
EngineLoaded bool `json:"engineLoaded"`
}