You are welcome to submit any bugs, issues and feature requests on this repository. This guide explains how to effectively collaborate on our MQTT client implementation for Swift.
All participants must adhere to our Code of Conduct.
- Search existing Issues first
- Use template:
### Environment
- Swift Version:
- Platform:
### Problem Description
[Concise summary]
### Expected Behavior
[Clear expectation]
### Reproduction Steps
1.
2.
3.
b. Pull Requests
1. Branch naming: feature/[short-description] or fix/[issue-number]
2. Implementation requirements:
◦ 100% passing tests (swift test)
◦ Updated documentation for API changes
◦ Compatibility with Swift 5.8+
3. Commit message format:
[Type]: [Brief description]
- Detail 1
- Detail 2
Resolves #IssueNumber
Types: ci,feat, fix, docs, test, chore
3. Code Standards
• Swift-specific:
```swift
// 4-space indentation
struct MQTTConfig {
let host: String
func connect() async throws {
guard isValid else {
throw MQTTError.invalidConfig
}
}
}• Avoid force unwrapping (!)
• Prefer protocol-oriented design
- Testing
swift test --enable-test-discovery