@@ -32,29 +32,29 @@ extension LCLWebSocket {
32
32
///
33
33
/// Set this to enable WSS (WebSocket Secure) connections.
34
34
/// - Note: Required for `wss://` URLs. By default, this is `nil`.
35
- let tlsConfiguration : TLSConfiguration ?
35
+ public var tlsConfiguration : TLSConfiguration ?
36
36
37
37
/// Maximum size of a single WebSocket frame in bytes. Default is 1 << 14 (16KB).
38
38
///
39
39
/// - Important: Frames larger than this will be rejected
40
- var maxFrameSize : Int
40
+ public var maxFrameSize : Int
41
41
42
42
/// Minimum size required for non-final fragments. Default is 0 (no minimum).
43
- var minNonFinalFragmentSize : Int
43
+ public var minNonFinalFragmentSize : Int
44
44
45
45
/// Maximum number of frames that can be accumulated. Default is Int.max.
46
46
///
47
47
/// Limits memory usage when receiving fragmented messages.
48
- var maxAccumulatedFrameCount : Int
48
+ public var maxAccumulatedFrameCount : Int
49
49
50
50
/// Maximum total size of accumulated frames in bytes. Default is Int.max.
51
- var maxAccumulatedFrameSize : Int
51
+ public var maxAccumulatedFrameSize : Int
52
52
53
53
/// Low water mark for write buffer in bytes.
54
54
///
55
55
/// When buffer size drops below this, writes resume.
56
56
/// - Note: Must be >= 1 and <= writeBufferWaterMarkHigh
57
- var writeBufferWaterMarkLow : Int {
57
+ public var writeBufferWaterMarkLow : Int {
58
58
willSet {
59
59
precondition (
60
60
newValue >= 1 && newValue <= writeBufferWaterMarkHigh,
@@ -67,7 +67,7 @@ extension LCLWebSocket {
67
67
///
68
68
/// When buffer exceeds this, writes pause.
69
69
/// - Note: Must be >= writeBufferWaterMarkLow
70
- var writeBufferWaterMarkHigh : Int {
70
+ public var writeBufferWaterMarkHigh : Int {
71
71
willSet {
72
72
precondition (
73
73
newValue >= writeBufferWaterMarkLow,
@@ -77,39 +77,39 @@ extension LCLWebSocket {
77
77
}
78
78
79
79
/// Maximum time to wait for connection establishment.
80
- var connectionTimeout : TimeAmount
80
+ public var connectionTimeout : TimeAmount
81
81
82
82
/// The network device name on the system to route the traffic to.
83
83
///
84
84
/// If the device associated with the given `deviceName` is not found, then the WebSocket will
85
85
/// be bound to the default interface according to the operating system's choice.
86
86
///
87
87
/// - Note: You might need root privileges to use this feature.
88
- var deviceName : String ?
88
+ public var deviceName : String ?
89
89
90
90
/// Auto-ping configuration to keep the WebSocket connection alive. Default is enabled.
91
91
/// - seealso: `AutoPingConfiguration`
92
- var autoPingConfiguration : AutoPingConfiguration
92
+ public var autoPingConfiguration : AutoPingConfiguration
93
93
94
94
/// Socket send buffer size in bytes.
95
95
///
96
96
/// This option will not be applied if `NIOTSEventLoopGroup` is used.
97
- var socketSendBufferSize : SocketOptionValue
97
+ public var socketSendBufferSize : SocketOptionValue
98
98
99
99
/// Socket receive buffer size in bytes.
100
100
///
101
101
/// This option will not be applied if `NIOTSEventLoopGroup` is used.
102
- var socketReceiveBufferSize : SocketOptionValue
102
+ public var socketReceiveBufferSize : SocketOptionValue
103
103
104
104
/// Indicate that the underlying socket should reuse address or not.
105
105
///
106
106
/// - Note: see more in `man socket(7)`.
107
- var socketReuseAddress : Bool
107
+ public var socketReuseAddress : Bool
108
108
109
109
/// Indicate that the socket should send the segments as soon as possible. If set, the Nagle algorithm is disabled.
110
110
///
111
111
/// - Note: see more in `man socket(7)`
112
- var socketTcpNoDelay : Bool
112
+ public var socketTcpNoDelay : Bool
113
113
114
114
/// Strategy for handling leftover bytes after upgrade.
115
115
///
0 commit comments