[WKSDK shared].connectionManager interface in the code.
Configuration
[WKSDK shared].options
Swift Configuration
Advanced Configuration
Connect
Disconnect
Connection Status Monitoring
Delegate Implementation
Connection Status Types
| Status | Description |
|---|---|
WKConnecting | Connecting to server |
WKConnected | Successfully connected |
WKDisconnected | Disconnected from server |
WKConnectFail | Connection failed |
Reason Codes
Common reason codes for connection status changes:| Code | Description |
|---|---|
WKReasonConnectSuccess | Connection successful |
WKReasonConnectTimeout | Connection timeout |
WKReasonAuthFail | Authentication failed |
WKReasonNetworkError | Network error |
WKReasonKickOff | Kicked off by another device |
Best Practices
1. Connection Lifecycle Management
2. Network Status Monitoring
3. Error Handling
Next Steps
Message Handling
Learn how to send and receive messages
Channel Management
Manage channels and groups
Conversation Management
Handle conversation lists
Media Messages
Handle image, voice, and video messages

