Commit Graph

149 Commits

Author SHA1 Message Date
6972f7a84e Merge pull request #74 from wnemay/master
Adjustments to headers during client handshake.
2.0.3
2016-05-10 18:02:09 +02:00
93b0b9eeaf Merge pull request #77 from thorstenfreitag/master
Compatibility for broken servers and additional authentication option instead of just basic
2016-05-10 17:52:30 +02:00
dd14850bb6 Used case insensitive recognition for upgrade header. Should work as before, but also with servers that wrongly use lower case upgrade in the header 2016-05-10 11:56:01 +10:00
d36f7bb100 Changed Header value to lower case upgrade, seems to fix connection issues with SAP HCP IoT services. Changed setAuthorization(const char * auth) to send Auth header as is, without BASIC to enable oAuth tokens in header 2016-05-09 00:11:42 +10:00
10a8d3ca67 Adding Origin, as required by spec. https://tools.ietf.org/html/rfc6455#section-1.6 2016-04-30 20:55:59 -07:00
4f55c36c80 RFC requires a port for Host when it is non default. https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23 2016-04-30 15:46:19 -07:00
b3efb316ed bump version 2.0.2 2016-03-16 16:25:57 +01:00
ea997cf977 update README.md 2016-03-16 16:25:31 +01:00
a103bb915c Merge remote-tracking branch 'remotes/origin/async' 2016-03-16 16:23:50 +01:00
bc58d75d71 Merge pull request #59 from uncletammy/patch-1
Added note about delay() limitation.
2016-03-16 16:23:26 +01:00
d7be7cd2fe Merge pull request #64 from urish/patch-1
fix typo: lenght -> length
2016-03-16 15:55:00 +01:00
73faf7e6b6 Merge pull request #65 from urish/patch-2
Make the `Sec-WebSocket-Protocol` header optional
2016-03-16 15:54:26 +01:00
00be8c7833 Make the Sec-WebSocket-Protocol header optional
Some server implementations (e.g. slack bots api) don't accept the connection if `Sec-WebSocket-Protocol` is specified.
2016-03-16 11:55:21 +02:00
5b4eaa0b11 fix typo: lenght -> length 2016-03-16 03:28:21 +02:00
8988faf5f0 fix #60
os_printf can not handle String direct
2016-03-05 12:13:13 +01:00
1ebae1d3e1 Add note about delay() limitation.
Change concerns issue https://github.com/Links2004/arduinoWebSockets/issues/58
2016-03-04 14:19:19 -06:00
49a2a9ab4f update README.md 2.0.1 2016-02-20 12:30:38 +01:00
450ca76a74 add return value to all send functions 2016-02-20 12:27:19 +01:00
c57a4c19ab add HTTP Basic Authorization to WS Client and Server
see: #55
2016-02-17 17:56:03 +01:00
2d87bfa3d6 less ram usage when using strings 2016-02-06 19:21:24 +01:00
2b6f1909d7 add ESP31B to compatible list 2.0-alpha1 2016-01-30 12:02:09 +01:00
16824906c8 increase timeout to 2000ms
sync TCP is default
2016-01-30 12:01:09 +01:00
632ee13230 Merge remote-tracking branch 'remotes/me-no-dev/async' into async 2016-01-30 11:59:33 +01:00
512e3f6c09 add ESP31B support and fix header size 2016-01-30 02:24:29 +02:00
629f524ea4 fix c&p error in handling of more then 125 byte 2016-01-30 00:34:00 +01:00
63f8675816 update README.md 2016-01-29 13:52:27 +01:00
b7a694c16a add note for async mode 2016-01-29 13:28:05 +01:00
0a8a8979ef Merge remote-tracking branch 'remotes/origin/master' into async
Conflicts:
	src/WebSockets.h
2016-01-29 13:22:15 +01:00
76853c7a73 async client working 2016-01-29 13:16:02 +01:00
005441d5f8 Merge pull request #43 from brtiberio/master
add possibilty to define subprotocol of websockets client
2016-01-26 19:55:02 +01:00
358d8c769e added subprotocol for ssl client also 2016-01-24 17:08:22 +00:00
1275914c86 first parts of client working 2016-01-24 00:52:23 +01:00
790a922d5a add deprecated warning for loop in async mode
fix sync mode
2016-01-23 18:41:45 +01:00
5c2c257526 fix server disconnect problems 2016-01-23 18:34:30 +01:00
57e30e0634 First steps to do async 2016-01-23 16:27:02 +01:00
3e0b0bd377 updated with upstream, added subprotocol to client 2016-01-20 23:56:09 +00:00
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
cf7652a371 allow usage of std::bind for Event callback 2016-01-11 10:37:27 +01:00
21e959c013 fix #38 1.4 2016-01-07 01:21:09 +01:00
ccbef0fced Update library.json 2015-12-29 12:15:18 +01:00
431c5d17b9 Merge pull request #35 from ivankravets/patch-1
@PlatformIO Library Registry manifest file
2015-12-29 12:00:39 +01:00
5f9e30e908 @PlatformIO Library Registry manifest file
* This library in Web Registry: http://platformio.org/#!/lib/show/549/WebSockets
* Specification: [library.json](http://docs.platformio.org/en/latest/librarymanager/config.html)
* Library Manager:  http://docs.platformio.org/en/latest/librarymanager/index.html
2015-12-29 00:45:20 +02:00
21e092d179 code cleanup
improve readWait error handling
2015-12-28 16:33:54 +01:00
b24f021d33 update README.md 2015-12-28 03:25:01 +01:00
ff33056309 try to send data in one TCP packed if possible,
add random mask support for short frames.
may helps with #34
2015-12-28 03:19:45 +01:00
848979ecf0 use String to store fingerprint
(const char * can be invalidate based on which scope it coming from)
move _fingerprint to Client class only (server not need it)
2015-12-24 12:58:05 +01:00
167e61823c Merge pull request #31 from schokocappucino/master
verify ssl certificate fingerprint
2015-12-24 12:47:54 +01:00
07bd519940 disconnect on certificate mismatch 2015-12-24 04:52:05 +01:00
73680279f5 verify ssl certificate fingerprint 2015-12-24 04:47:11 +01:00
24eb13cf44 add WebSocketClientAVR example 1.3 2015-12-10 11:18:28 +01:00