| 28 | #if defined(ESP8266) || defined(ESP32) |
| 29 | |
| 30 | WebSocketsClient::WebSocketsClient() { |
| 31 | _cbEvent = NULL; |
| 32 | _client.num = 0; |
| 33 | _client.cIsClient = true; |
| 34 | _client.extraHeaders = WEBSOCKETS_STRING("Origin: file://"); |
| 35 | _reconnectInterval = 500; |
| 36 | _port = 0; |
| 37 | _host = ""; |
| 38 | } |
| 39 | |
| 40 | WebSocketsClient::~WebSocketsClient() { |
| 41 | disconnect(); |
nothing calls this directly
no outgoing calls
no test coverage detected