xC/xP: implement session resumption
Alpine 3.24 Success
Arch Linux AUR Success
OpenBSD 7.8 Success

Mobile clients pretty much need this, because they keep interrupting
their connections to the relay.
This commit is contained in:
2026-07-26 16:03:49 +02:00
parent 38188632e0
commit bcfbd40003
7 changed files with 470 additions and 86 deletions
+2 -1
View File
@@ -697,7 +697,8 @@ func refreshBuffer(b: Buffer) {
// --- Event processing --------------------------------------------------------
relayRPC.onConnected = {
let hello = RelayCommandDataHello(version: UInt32(relayVersion))
let hello = RelayCommandDataHello(
version: UInt32(relayVersion), sessionId: [], eventSeq: 0)
relayRPC.send(data: hello)
}