0aaf50f87f
mask ping for client
...
fix #34
2017-01-06 10:44:25 +01:00
ab3b5bae46
Update WebSocketsClient.cpp
...
fix typo that was breaking the build
2016-11-24 02:25:01 -02:00
45bb7dbe23
Update WebSocketsClient.cpp
...
fix #140 Socket.io client doesn't reconnect to server
2016-11-23 17:39:48 +01:00
5cd68c5304
- Remove duplicate handshake headers
...
- Add debug log for displaying handshake headers
Host, Origin, and User-Agent were duplicated in the case the client was
not socketIO or if it was and has a sessionId
2016-11-16 18:35:14 -05:00
d2719573d4
add function to send WS ping
...
sendPing();
#130
2016-10-22 19:47:44 +02:00
7810d0d0b3
Make library compatible with Particle devices
2016-10-20 15:46:44 -04:00
529a86cc26
Merge pull request #90 from kenkus-futurice/master
...
Add socket.io client
2016-09-11 17:13:57 +02:00
b3d4367d10
fix spellings
2016-06-17 15:37:07 +01:00
f8a5acc9b7
Add socket.io client
2016-06-06 15:21:13 +03:00
6972f7a84e
Merge pull request #74 from wnemay/master
...
Adjustments to headers during client handshake.
2016-05-10 18:02:09 +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
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
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
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
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
21e092d179
code cleanup
...
improve readWait error handling
2015-12-28 16:33:54 +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
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
098c488ff0
add beginSSL
2015-12-10 10:10:06 +01:00
093797a815
first step for SSL (wss) support
2015-12-10 09:36:18 +01:00
7a22dad9d1
try to improve
...
see: #23
2015-12-05 11:43:03 +01:00
d5b0364f5c
allow override of CB handling
...
see #14
2015-10-31 11:37:07 +01:00
187a4ac823
bump version
...
optimize String usage (less malloc / realloc)
remove double debug line
2015-10-21 17:17:09 +02:00
b60599dcd7
Update websocket client handshake
...
Sending handshake with only one tcp.write.
Note: it solve connection problem with the QT websocket server.
2015-10-20 22:05:08 +02:00
39f912b982
add possibility to add Header To Payload to save one TCP package
...
see #12
2015-10-11 10:11:32 +02:00
afe1a2b9d3
Handle header name case Insensitive
...
see RFC2616 and #8
2015-07-26 11:08:02 +02:00
28b7619419
allow any "case" for Upgrade
...
RFC6455:
An |Upgrade| header field containing the value "websocket", treated as an ASCII case-insensitive value.
2015-06-17 10:39:27 +02:00
f118a13d0f
allow "Upgrade: WebSocket" for client
2015-06-17 10:33:42 +02:00
e1e6280e82
first working WebSocketClient
...
add LGPLv2.1
2015-05-24 15:40:47 +02:00
b5dbeccdf5
first steps to Client
2015-05-23 23:51:32 +02:00
02da0e0aa7
begin of WebSockets Server development
...
receive and phasing of WebSockets Header working
2015-05-22 14:19:01 +02:00