Convert JSON protocol to efficient binary format

- Implemented compact binary encoding for packets and messages
- Reduced packet size significantly (13-byte fixed header + variable payload)
- Optimized for BLE's limited MTU with smaller message sizes
- Added BinaryProtocol.swift with encode/decode functions
- Updated all message types to use binary serialization
- Maintains all existing functionality with better performance
This commit is contained in:
jack
2025-07-02 22:09:02 +02:00
parent f43d31b960
commit 20ebaa109c
5 changed files with 344 additions and 20 deletions
+1 -4
View File
@@ -17,10 +17,7 @@ let package = Package(
targets: [
.executableTarget(
name: "bitchat",
path: "bitchat",
resources: [
.process("Info.plist")
]
path: "bitchat"
),
]
)