Commit Graph

72 Commits

Author SHA1 Message Date
david gauchard
74411bf729 use native contructor and destructor to initialize WSclient_t 2020-11-26 19:33:18 +01:00
Links
4f52a0f38e cleanup server client init 2020-11-21 14:07:32 +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
Markus
13a304a8c9 Merge pull request #569 from Links2004/esp8266_bareSSL_native
ESP8266 bare ssl native
2020-10-04 15:40:43 +02:00
Links
91b02341ba Native BareSSL support for ESP8266
see #557, #509, #492, #555, #352
2020-10-04 14:49:22 +02: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
Ben Hencke
4acc7eff8a add api to check connectedness of clients by num 2020-09-08 09:54:33 -07: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
maurus_fritsche
674a6e98c9 Implemented HeartBeat in WebSocketsServer 2020-02-10 19:45:55 +01: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
3063ad27ae clang-format 2019-06-10 13:00:01 +02:00
Links
0aa07421a6 add events for ping / pong rx #382 2019-05-30 20:15:03 +02:00
Links
8ec27b0468 fix indexOf #430 2019-05-30 16:52:20 +02:00
Sanket Patel
4db22fe5e4 make masking RFC complaint and fix #208 2018-09-23 16:49:10 +05:30
Markus
bdee8b9744 call end for ESP8266_ASYNC TCP Server 2018-06-21 09:30:11 +02:00
Links
bde97179bf fix unused parameter warnings
fix switch warinings

part of #319
2018-05-12 11:39:59 +02:00
Links
a796079b0c fix code style 2018-05-12 11:27:03 +02:00
Links
e8c0d775fb fix #146 HTTP Header handler 2018-05-12 11:22:16 +02:00
Links
4b33575af1 add connectedClients see #242 2018-05-10 20:43:08 +02:00
Links
ea8e81c6ce add close #322 2018-05-10 18:56:31 +02:00
Links
887683fabb Merge branch 'master' into esp32 2018-02-06 20:24:03 +01:00
Markus
c5461d5779 memset zero _clients struct for server
fixes #244
2017-10-06 18:30:05 +02:00
Markus
fa580a568f Merge pull request #223 from robokoding/master
Add ESP32 support from @robokoding
2017-09-20 18:53:55 +02:00
Silver Kuusik
83a1539e1e fix: ESP32 new client connection 2017-09-03 09:55:15 +02:00
Silver Kuusik
4c1c5378cb esp32 no hasClient function 2017-07-30 01:40:36 +02:00
Silver Kuusik
1d40160d99 added esp32 support 2017-07-30 00:54:17 +02:00
Links
adb52b11e9 handle cases when not all data can be written to TCP stack #187 2017-04-09 17:58:23 +02:00
Links
81e567b248 send 401 header too if auth string is empty #116 2017-03-18 10:35:23 +01:00
Philippe Guay
26140be6c9 fix #150 typo lenght -> length 2017-03-06 15:09:03 -05:00
Links
34a2d282e4 allow to moves all Header strings to Flash (~300 Byte) #152 2017-02-22 15:30:58 +01:00
Links
e93a323e56 add support for Fragmentation / continuation opcode Receive 2017-02-22 14:29:26 +01:00
Carl Ouellette
60e3d1080e Merge branch 'master' into master 2017-02-07 16:05:20 -05:00
Markus Sattler
d2719573d4 add function to send WS ping
sendPing();

#130
2016-10-22 19:47:44 +02:00
CAOU123
7810d0d0b3 Make library compatible with Particle devices 2016-10-20 15:46:44 -04:00
joe
7e5c64a573 mandatoryHttpHeaderCount fix 2016-06-09 19:48:38 +01:00
joe
97443ae777 custom http header validation implementation; minor comment fixes 2016-06-08 23:11:21 +01:00
joe
e589b40b25 custom http header validation implementation 2016-06-08 23:04:18 +01:00
jlippa
48ee5fc6fb Firefox fix
Overlay fix for Firefox and other clients that send additional data in the Connection header e.g. "Connection: Keep-Alive, Upgrade"
2016-06-05 08:27:39 +01:00
jlippa
c4e5f5c7e7 RFC 6455 4.2.1.4 case sensitivity fix
This is a case sensitivity fix for the Connection header Upgrade value to make this part meet the requirement of IETF websocket RFC 6455 4.2.1.4: "A |Connection| header field that includes the token "Upgrade", treated as an ASCII case-insensitive value."
2016-06-04 21:31:42 +01:00
Markus Sattler
8988faf5f0 fix #60
os_printf can not handle String direct
2016-03-05 12:13:13 +01:00
Markus Sattler
450ca76a74 add return value to all send functions 2016-02-20 12:27:19 +01:00
Markus Sattler
c57a4c19ab add HTTP Basic Authorization to WS Client and Server
see: #55
2016-02-17 17:56:03 +01:00
Markus Sattler
2d87bfa3d6 less ram usage when using strings 2016-02-06 19:21:24 +01:00
Markus Sattler
790a922d5a add deprecated warning for loop in async mode
fix sync mode
2016-01-23 18:41:45 +01:00
Markus Sattler
5c2c257526 fix server disconnect problems 2016-01-23 18:34:30 +01:00
Markus Sattler
57e30e0634 First steps to do async 2016-01-23 16:27:02 +01:00
Markus Sattler
ece771a275 add support for setting:
- Access-Control-Allow-Origin (#25)
 - Sec-WebSocket-Protocol ()

add _server->close(); for ESP
2016-01-14 17:28:00 +01:00
Markus Sattler
83ac64b72b add support for AVR
this need some more testing but basics are done
2015-12-10 11:16:08 +01:00