ESP32, trying to make and hold a websocket connection. Always connects properly unless a Sec-WebSocket-Protocol field (of any value) is included in the Request Headers message sent from client web browser - when the server immediately disconnects (error 1006). Not sure if this is expected behaviour - any suggestions please as to how to modify code to correct this as my application will always require a subprotocol field. It would be useful to be able to extract this information for further use within application code.
ESP32, trying to make and hold a websocket connection. Always connects properly unless a Sec-WebSocket-Protocol field (of any value) is included in the Request Headers message sent from client web browser - when the server immediately disconnects (error 1006). Not sure if this is expected behaviour - any suggestions please as to how to modify code to correct this as my application will always require a subprotocol field. It would be useful to be able to extract this information for further use within application code.