Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cobo.com/developers/llms.txt

Use this file to discover all available pages before exploring further.

Try Cobo WaaS Skill in your AI coding assistant (Claude Code, Cursor, etc.). Describe your needs in natural language to auto-generate production-ready SDK code and debug faster 🚀
public func getConnStatus() -> (ConnCode, String?)
if let (connCode, connMessage) = sdkInstance?.getConnStatus() {
    print("Connection Code: \(connCode), Message: \(connMessage ?? "No message")")
} else {
    print("Failed to get connection status")
}

Response

connCode
enum<int32>
The connection status code. Possible values include:
  • 1300: Connected.
  • 1301: Disconnected.
  • 1302: Connection closed.
  • 1310: Connection error.
  • 1311: URL parse error.
  • 1320: Connection refused.
  • 1321: Connection failed.
  • 1350: Proxy error.
  • 1351: Proxy parse error.
connMessage
string
The message associated with the connCode.