MCPcopy Create free account
hub / github.com/blinker-iot/blinker-library / WebSocketsClient

Method WebSocketsClient

src/modules/WebSockets/WebSocketsClient.cpp:30–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#if defined(ESP8266) || defined(ESP32)
29
30WebSocketsClient::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
40WebSocketsClient::~WebSocketsClient() {
41 disconnect();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected