You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Client intialization code (components/esp_websocket_client/esp_websocket_client.c; from line 430):
if (client->transport==NULL) {
ESP_LOGE(TAG, "There are no transport");
client->run= false;
break;
}
esp_transport_ws_set_path(client->transport, client->config->path);
esp_transport_ws_set_subprotocol(client->transport, client->config->subprotocol);
if (esp_transport_connect(client->transport,
client->config->host,
client->config->port,
client->config->network_timeout_ms) <0) {
ESP_LOGE(TAG, "Error transport connect");
esp_websocket_client_abort_connection(client);
break;
}
Regards,
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Websocket client library does not handle subprotocols
Websocket client library does not handle subprotocols (IDFGH-1644)
Aug 7, 2019
Environment
Problem Description
Hi all,
With the new Websockets library can not set subprotocol header for websocket initialization.
One possible solution: extend the configuration with subprotocol variable.
Configuration storage code (components/esp_websocket_client/esp_websocket_client.c; from line 76):
Configuration processor code (components/esp_websocket_client/esp_websocket_client.c; from line 170):
Client intialization code (components/esp_websocket_client/esp_websocket_client.c; from line 430):
Regards,
The text was updated successfully, but these errors were encountered: