From d1a532df4091666b7c1c042f18dc8dd3d238d220 Mon Sep 17 00:00:00 2001 From: Steve Hamblett Date: Tue, 9 Jul 2024 14:11:39 +0100 Subject: [PATCH] Issue 531 --- .../server/mqtt_client_mqtt_server_ws_connection.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/connectionhandling/server/mqtt_client_mqtt_server_ws_connection.dart b/lib/src/connectionhandling/server/mqtt_client_mqtt_server_ws_connection.dart index c983764..6d7d8b5 100644 --- a/lib/src/connectionhandling/server/mqtt_client_mqtt_server_ws_connection.dart +++ b/lib/src/connectionhandling/server/mqtt_client_mqtt_server_ws_connection.dart @@ -105,7 +105,8 @@ class MqttServerWsConnection extends MqttServerConnection { try { // Connect and save the socket. WebSocket.connect(uriString, - protocols: protocols.isNotEmpty ? protocols : null) + protocols: protocols.isNotEmpty ? protocols : null, + headers: headers) .then((socket) { client = socket; _startListening();