Commit Graph

49 Commits

Author SHA1 Message Date
7ddcdc2bd3 add info for AVR usage with version 2.x.x 2018-05-12 12:40:56 +02:00
bde97179bf fix unused parameter warnings
fix switch warinings

part of #319
2018-05-12 11:39:59 +02:00
486a612693 allow usage of IPAddress #230 2018-05-10 20:12:48 +02:00
50d9a8d6e5 fix undefined virtual methods 2018-03-18 01:25:49 +03:00
b059d0711c sort examples by platform
rework the travis tests
create ESP32 examples
2018-02-07 17:28:17 +01:00
f62aa6478d more ESP32 stuff 2018-02-06 21:36:44 +01:00
fa580a568f Merge pull request #223 from robokoding/master
Add ESP32 support from @robokoding
2017-09-20 18:53:55 +02:00
c64a082270 Merge branch 'write_big_data' 2017-08-19 21:36:10 +02:00
522a67bc1b add setReconnectInterval for the Client 2017-08-19 21:16:07 +02:00
4fc80871a6 Update WebSockets.h 2017-07-30 00:18:37 +02:00
42ab3168c5 Switch to setting extra headers via function 2017-07-19 09:59:34 +02:00
c911776860 add virtual to write
fix some naming
2017-04-10 17:49:42 +02:00
adb52b11e9 handle cases when not all data can be written to TCP stack #187 2017-04-09 17:58:23 +02:00
e675c7590e add missing include for ESP with W5100 #177 2017-03-09 18:43:23 +01:00
34a2d282e4 allow to moves all Header strings to Flash (~300 Byte) #152 2017-02-22 15:30:58 +01:00
e93a323e56 add support for Fragmentation / continuation opcode Receive 2017-02-22 14:29:26 +01: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
7361e2b1b6 WEBSOCKETS_NETWORK_TYPE exteral definition
Making possible to define WEBSOCKETS_NETWORK_TYPE as a compile parameter.
2016-07-15 20:29:13 +01:00
joe
e589b40b25 custom http header validation implementation 2016-06-08 23:04:18 +01:00
f8a5acc9b7 Add socket.io client 2016-06-06 15:21:13 +03: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
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
16824906c8 increase timeout to 2000ms
sync TCP is default
2016-01-30 12:01:09 +01:00
512e3f6c09 add ESP31B support and fix header size 2016-01-30 02:24:29 +02:00
63f8675816 update README.md 2016-01-29 13:52:27 +01:00
76853c7a73 async client working 2016-01-29 13:16:02 +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
21e092d179 code cleanup
improve readWait error handling
2015-12-28 16:33:54 +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
73680279f5 verify ssl certificate fingerprint 2015-12-24 04:47:11 +01:00
83ac64b72b add support for AVR
this need some more testing but basics are done
2015-12-10 11:16:08 +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
39f912b982 add possibility to add Header To Payload to save one TCP package
see #12
2015-10-11 10:11:32 +02:00
1a533cd15c first steps to allow sending continuation frame 2015-06-17 10:27:01 +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
44c00d2dd9 no need to store the Sec-WebSocket-Accept key if needed can be generated by acceptKey from client Sec-WebSocket-Key 2015-05-23 09:34:09 +02:00
0ca1503e52 add disconnect functions
void disconnect(void);
   void disconnect(uint8_t num);
2015-05-23 09:20:44 +02:00
27a9a22908 create overloaded functions for send and broadcast for easy usage
void sendTXT(uint8_t num, uint8_t * payload, size_t length = 0);
        void sendTXT(uint8_t num, const uint8_t * payload, size_t length = 0);
        void sendTXT(uint8_t num, char * payload, size_t length = 0);
        void sendTXT(uint8_t num, const char * payload, size_t length = 0);
        void sendTXT(uint8_t num, String payload);

        void broadcastTXT(uint8_t * payload, size_t length = 0);
        void broadcastTXT(const uint8_t * payload, size_t length = 0);
        void broadcastTXT(char * payload, size_t length = 0);
        void broadcastTXT(const char * payload, size_t length = 0);
        void broadcastTXT(String payload);

        void sendBIN(uint8_t num, uint8_t * payload, size_t length);
        void sendBIN(uint8_t num, const uint8_t * payload, size_t length);

        void broadcastBIN(uint8_t * payload, size_t length);
        void broadcastBIN(const uint8_t * payload, size_t length);

send URL as payload on WStype_CONNECTED event
move Sec-WebSocket-Accept generation in function
2015-05-23 09:02:59 +02:00
f1ecfa9d20 first full working version of WebSocketsServer 2015-05-22 23:02:47 +02:00
cc60722ede esp8266 to browser working 2015-05-22 21:37:20 +02:00
a14a58dbd2 message browser to client working 2015-05-22 20:35:51 +02:00
02da0e0aa7 begin of WebSockets Server development
receive and phasing of WebSockets Header working
2015-05-22 14:19:01 +02:00