@@ -37,6 +37,8 @@ extension WebSocket {
3737 /// - Parameters:
3838 /// - url: URL for the WebSocket server.
3939 /// - headers: Headers to send to the WebSocket server.
40+ /// - queueSize: the size of the buffer queue.
41+ /// - deviceName: the device to which the data will be sent.
4042 /// - configuration: Configuration for the WebSocket client.
4143 /// - eventLoopGroup: Event loop group to be used by the WebSocket client.
4244 /// - onUpgrade: An escaping closure to be executed after the upgrade is completed by `NIOWebSocketClientUpgrader`.
@@ -46,6 +48,7 @@ extension WebSocket {
4648 to url: URL ,
4749 headers: HTTPHeaders = [ : ] ,
4850 queueSize: Int ? = nil ,
51+ deviceName: String ? = nil ,
4952 configuration: WebSocketClient . Configuration = . init( ) ,
5053 on eventLoopGroup: EventLoopGroup ,
5154 onUpgrade: @Sendable @escaping ( WebSocket ) -> ( )
@@ -59,6 +62,7 @@ extension WebSocket {
5962 query: url. query,
6063 queueSize: queueSize,
6164 headers: headers,
65+ deviceName: deviceName,
6266 configuration: configuration,
6367 on: eventLoopGroup,
6468 onUpgrade: onUpgrade
@@ -74,6 +78,7 @@ extension WebSocket {
7478 /// - path: Path component of the URI for the WebSocket server.
7579 /// - query: Query component of the URI for the WebSocket server.
7680 /// - headers: Headers to send to the WebSocket server.
81+ /// - deviceName: the device to which the data will be sent.
7782 /// - configuration: Configuration for the WebSocket client.
7883 /// - eventLoopGroup: Event loop group to be used by the WebSocket client.
7984 /// - onUpgrade: An escaping closure to be executed after the upgrade is completed by `NIOWebSocketClientUpgrader`.
@@ -87,6 +92,7 @@ extension WebSocket {
8792 query: String ? = nil ,
8893 queueSize: Int ? = nil ,
8994 headers: HTTPHeaders = [ : ] ,
95+ deviceName: String ? = nil ,
9096 configuration: WebSocketClient . Configuration = . init( ) ,
9197 on eventLoopGroup: EventLoopGroup ,
9298 onUpgrade: @Sendable @escaping ( WebSocket ) -> ( )
@@ -102,6 +108,7 @@ extension WebSocket {
102108 query: query,
103109 headers: headers,
104110 maxQueueSize: queueSize,
111+ deviceName: deviceName,
105112 onUpgrade: onUpgrade
106113 )
107114 }
@@ -119,6 +126,7 @@ extension WebSocket {
119126 /// - proxyPort: Port on which to connect to the proxy server.
120127 /// - proxyHeaders: Headers to send to the proxy server.
121128 /// - proxyConnectDeadline: Deadline for establishing the proxy connection.
129+ /// - deviceName: the device to which the data will be sent.
122130 /// - configuration: Configuration for the WebSocket client.
123131 /// - eventLoopGroup: Event loop group to be used by the WebSocket client.
124132 /// - onUpgrade: An escaping closure to be executed after the upgrade is completed by `NIOWebSocketClientUpgrader`.
@@ -135,6 +143,7 @@ extension WebSocket {
135143 proxyPort: Int ? = nil ,
136144 proxyHeaders: HTTPHeaders = [ : ] ,
137145 proxyConnectDeadline: NIODeadline = NIODeadline . distantFuture,
146+ deviceName: String ? = nil ,
138147 configuration: WebSocketClient . Configuration = . init( ) ,
139148 on eventLoopGroup: EventLoopGroup ,
140149 onUpgrade: @Sendable @escaping ( WebSocket ) -> ( )
@@ -153,6 +162,7 @@ extension WebSocket {
153162 proxyPort: proxyPort,
154163 proxyHeaders: proxyHeaders,
155164 proxyConnectDeadline: proxyConnectDeadline,
165+ deviceName: deviceName,
156166 onUpgrade: onUpgrade
157167 )
158168 }
@@ -166,6 +176,7 @@ extension WebSocket {
166176 /// - proxyPort: Port on which to connect to the proxy server.
167177 /// - proxyHeaders: Headers to send to the proxy server.
168178 /// - proxyConnectDeadline: Deadline for establishing the proxy connection.
179+ /// - deviceName: the device to which the data will be sent.
169180 /// - configuration: Configuration for the WebSocket client.
170181 /// - eventLoopGroup: Event loop group to be used by the WebSocket client.
171182 /// - onUpgrade: An escaping closure to be executed after the upgrade is completed by `NIOWebSocketClientUpgrader`.
@@ -178,6 +189,7 @@ extension WebSocket {
178189 proxyPort: Int ? = nil ,
179190 proxyHeaders: HTTPHeaders = [ : ] ,
180191 proxyConnectDeadline: NIODeadline = NIODeadline . distantFuture,
192+ deviceName: String ? = nil ,
181193 configuration: WebSocketClient . Configuration = . init( ) ,
182194 on eventLoopGroup: EventLoopGroup ,
183195 onUpgrade: @Sendable @escaping ( WebSocket ) -> ( )
@@ -197,6 +209,7 @@ extension WebSocket {
197209 proxyPort: proxyPort,
198210 proxyHeaders: proxyHeaders,
199211 proxyConnectDeadline: proxyConnectDeadline,
212+ deviceName: deviceName,
200213 on: eventLoopGroup,
201214 onUpgrade: onUpgrade
202215 )
0 commit comments