Open biohazardious opened 5 years ago
Hi @sandeepmistry ,
I added new begin signatures because unlike HttpClient REST methods, you should send authentication data while creating socket. That's why i modified begin function.
PS: sorry for whitespaces, it was a quick fix those was my mistake.
Hi @biohazardious,
Ok, got it so sendBasicAuth
is not the best name. An alternative is what we have in the MQTT Cient library: https://github.com/arduino-libraries/ArduinoMqttClient/blob/master/src/MqttClient.h#L85
setUsernamePassword
or setBasicAuth
- this is something you would call before begin
.
I added basic authentication for web socket.