david gauchard
ebb87cdc8a
+ constructors for scalars
2020-11-26 19:33:18 +01:00
david gauchard
e7ab913693
fix clearing _Client[]
2020-11-26 19:33:18 +01:00
david gauchard
52547ec47c
fix clients init logic
2020-11-26 19:33:18 +01:00
david gauchard
74411bf729
use native contructor and destructor to initialize WSclient_t
2020-11-26 19:33:18 +01:00
Links
c5900db636
add handling for Socket.IO V3 connection
2020-11-21 16:19:59 +01:00
Links
9470961d85
socket.io improve Cookie handling
2020-11-21 16:19:08 +01:00
Links
04919f848f
only try to send socket.io messages in WSC_CONNECTED state
...
handle sIOtype_CONNECT messages
send 2probe on websocket connect (#574 )
2020-11-21 16:17:43 +01:00
Links
08caf3bfc6
code style
2020-11-21 14:45:53 +01:00
Links
fb26433e75
add error messages if Webserver Hook Functions are not supported by platform
2020-11-21 14:33:25 +01:00
Links
4f52a0f38e
cleanup server client init
2020-11-21 14:07:32 +01:00
Links
f20fbbfcd9
code style
2020-11-21 14:07:14 +01:00
Links
28cd929e7e
code style
2020-11-21 14:06:30 +01:00
david gauchard
826c6b423a
esp8266: share port 80 with regular webserver ( #575 )
2020-11-21 13:51:16 +01:00
James Stubbington
7fea0b8bdf
Fix for Newline in Headers when extraHeaders is Empty [577] ( #578 )
...
Closes https://github.com/Links2004/arduinoWebSockets/issues/577
2020-11-14 18:17:10 +01:00
Links
4db14451fb
clang-format
2020-10-26 17:04:19 +01:00
itay7564
80bf087cd0
Add SSL client certificate support ( #572 )
...
* Add client certificate support
allows WiFiClientSecureBearSSL users to use client certificate and private key for the WebSocker.
also added SSL functions for socket.io
2020-10-26 17:01:31 +01:00
Markus
13a304a8c9
Merge pull request #569 from Links2004/esp8266_bareSSL_native
...
ESP8266 bare ssl native
2020-10-04 15:40:43 +02:00
Markus
9b873978ba
Merge pull request #566 from simap/master
...
avoid flush on esp32, add/fix debugs, longer yield when waiting for data
2020-10-04 15:31:15 +02:00
Links
ca52afeec0
code style
2020-10-04 15:11:06 +02:00
Links
91b02341ba
Native BareSSL support for ESP8266
...
see #557 , #509 , #492 , #555 , #352
2020-10-04 14:49:22 +02:00
lucalas
c73c77e988
Add check to set fingerprint;
2020-10-02 09:29:55 +02:00
lucalas
e1ddbfe1a5
Format Code;
2020-10-01 01:14:01 +02:00
lucalas
f65e8d9062
call setFingerPrint for ssl object in client with fingerprint received in beginSSL or no connection will start;
2020-10-01 01:12:54 +02:00
Ben Hencke
508e0fb691
add missing platforms for WEBSOCKETS_YIELD_MORE
2020-09-16 11:11:24 -07:00
Ben Hencke
083683425f
avoid flush on esp32, add/fix debugs, longer yield when waiting for data
...
flush causes a bunch of reads as we try to close the socket on esp32. I
think flush is broken on that platform. the comments indicate confusion.
added some debug logs for important cases that were missing them, some
missing newlines to exisitng logs.
added a longer yield when waiting for data, in some super busy cases it
could trigger a task watchdog or otherwise starve the system. (yield
alone doesn't always switch to lower priority tasks)
make some other yields conditional to avoid some waste when it would
double-yield.
2020-09-16 11:02:02 -07:00
Tobias Gessler
e185668a97
header response timeout added
2020-09-12 17:20:03 +02:00
Ben Hencke
4acc7eff8a
add api to check connectedness of clients by num
2020-09-08 09:54:33 -07:00
Markus
cadbd6458f
Merge pull request #551 from Links2004/ESP32v4
...
fix #525 (detect ESP32 version)
2020-07-11 18:13:13 +02:00
Links
3f1cedb21c
fix #541 allow loop() to be called before begin()
2020-07-11 17:58:36 +02:00
Links
ba6275e7fe
fix #525 (detect ESP32 vesion)
2020-07-11 17:55:18 +02:00
Markus
a71a480676
fix #539 (NODEBUG_WEBSOCKETS warning)
...
fix warning when using NODEBUG_WEBSOCKETS as compiler option.
2020-05-14 18:04:46 +02:00
Links
0c3b15c5e7
fix #454
2020-05-03 13:05:55 +02:00
Links
9048ef9ee4
code style
2020-05-03 09:28:55 +02:00
Links
b9e1336826
add new define for yield WEBSOCKETS_YIELD
2020-05-03 09:12:03 +02:00
Amr Bekhit
12684582aa
Initialize _reconnectInterval in constructor.
...
This allows setReconnectInterval() to be called before begin() and stops begin() from overriding _reconnectInterval every time it is called.
2020-03-21 22:14:25 +03:00
Markus
420cc55960
Merge pull request #501 from amrbekhit/websockets_tcp_timeout_increase
...
Increased WEBSOCKETS_TCP_TIMEOUT to 5000ms.
2020-03-14 14:51:25 +01:00
Markus
64296cced7
Merge pull request #512 from maurus95/master
...
Implementing automatic WS server-side heartbeat
2020-02-15 22:27:40 +01:00
Markus
c3f01e43fc
Merge pull request #514 from simap/master
...
read can return -1, check for this to avoid corrupting protocol
2020-02-15 22:18:48 +01:00
Ben Hencke
ebd7a528ac
add a yield here for esp32 to avoid a busy loop
...
if data isn't available yet, but is expected, yielding here is nicer
than burning the cpu in a loop, just like in esp8266 case.
2020-02-15 06:43:46 -08:00
Ben Hencke
516911900b
read can return -1, check for this to avoid corrupting protocol
...
fixes #470
2020-02-15 06:37:07 -08:00
maurus_fritsche
674a6e98c9
Implemented HeartBeat in WebSocketsServer
2020-02-10 19:45:55 +01:00
Amr Bekhit
4ee0ba5630
Increased WEBSOCKETS_TCP_TIMEOUT to 5000ms.
...
See https://github.com/Links2004/arduinoWebSockets/issues/500 .
2019-12-24 17:03:32 +03:00
Links
8cc20b6e4b
Merge branch 'master' of github.com:Links2004/arduinoWebSockets
2019-07-20 13:47:55 +02:00
Links
40152be197
code style
2019-07-20 13:47:40 +02:00
Links
e2669c1c5e
[SocketIO] allow to send any message
2019-07-20 13:46:59 +02:00
Luc
bd158c9c5c
Fix warnings in platformIO
...
Fix : warning: enumeration value 'WStype_ERROR' not handled in switch [-Wswitch]
Fix : warning: variable 'ip' set but not used [-Wunused-but-set-variable]
2019-07-04 12:58:37 +02:00
Links
adf2b07f3b
fix #447
2019-06-23 12:14:44 +02:00
Links
c164c47f08
Merge branch 'gpn19' into socketio
2019-06-20 10:08:36 +02:00
Links
6a76efa791
fix #445 #446 set TCP timeout for ESP32 on connect
2019-06-20 10:06:21 +02:00
Links
5d26a65df4
only send payload when we have a ptr and length
2019-06-20 10:02:07 +02:00