We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26272e0 + 3c8446e commit 354f009Copy full SHA for 354f009
Sources/CombineCoreBluetooth/Models/L2CAPChannel.swift
@@ -1,6 +1,9 @@
1
import Foundation
2
+import CoreBluetooth
3
4
public struct L2CAPChannel {
5
+ // Need to keep a reference to this so the system doesn't close the channel
6
+ let rawValue: CBL2CAPChannel?
7
public let peer: Peer
8
public let inputStream: InputStream
9
public let outputStream: OutputStream
@@ -19,6 +22,7 @@ extension L2CAPChannel {
19
22
}
20
23
21
24
self.init(
25
+ rawValue: channel,
26
peer: peer,
27
inputStream: channel.inputStream,
28
outputStream: channel.outputStream,
0 commit comments