xC/xP: implement session resumption
Mobile clients pretty much need this, because they keep interrupting their connections to the relay.
This commit is contained in:
+2
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user