aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Shared/NetSocket.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-02-02 23:19:57 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-02-02 23:19:57 +0100
commitc676230cbc7da1c2c4d5540f89da32e9228deffd (patch)
treeb47f940282ee552b2608d847a9ce5e06b5749f29 /Hotline/Shared/NetSocket.swift
parent77b3ac3c051fc4e8fa126cd21e261be28f4aad1a (diff)
Add autoconnect + reconnect logic
Diffstat (limited to 'Hotline/Shared/NetSocket.swift')
-rw-r--r--Hotline/Shared/NetSocket.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/Hotline/Shared/NetSocket.swift b/Hotline/Shared/NetSocket.swift
index a7d44ce..263487b 100644
--- a/Hotline/Shared/NetSocket.swift
+++ b/Hotline/Shared/NetSocket.swift
@@ -6,9 +6,9 @@
import Foundation
protocol NetSocketDelegate: AnyObject {
- func netsocketConnected(socket: NetSocket)
- func netsocketDisconnected(socket: NetSocket, error: Error?)
- func netsocketReceived(socket: NetSocket, bytes: [UInt8])
+ @MainActor func netsocketConnected(socket: NetSocket)
+ @MainActor func netsocketDisconnected(socket: NetSocket, error: Error?)
+ @MainActor func netsocketReceived(socket: NetSocket, bytes: [UInt8])
func netsocketSent(socket: NetSocket, count: Int)
}