Commit Graph

38 Commits

Author SHA1 Message Date
4b33575af1 add connectedClients see #242 2018-05-10 20:43:08 +02:00
ea8e81c6ce add close #322 2018-05-10 18:56:31 +02:00
d02932ef21 Allow custom WEBSOCKETS_SERVER_CLIENT_MAX definition 2018-04-02 22:17:34 -07:00
887683fabb Merge branch 'master' into esp32 2018-02-06 20:24:03 +01:00
b87bce4466 add virtual to destructor #243 2017-10-04 19:17:21 +02:00
a388676b40 added remoteIP for esp32 2017-07-30 00:22:23 +02: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
60e3d1080e Merge branch 'master' into master 2017-02-07 16:05:20 -05:00
a097f0defd protected inheritance is enough 2016-11-08 22:52:00 +01:00
689e3ef921 Change inheritance of WebSocketServer
to allow classes inheriting from it to call sendFrame with custom
arguments.
2016-11-08 01:48:01 +01: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
joe
7e5c64a573 mandatoryHttpHeaderCount fix 2016-06-09 19:48:38 +01:00
joe
e589b40b25 custom http header validation implementation 2016-06-08 23:04:18 +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
63f8675816 update README.md 2016-01-29 13:52:27 +01: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
57e30e0634 First steps to do async 2016-01-23 16:27:02 +01: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
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
d5b0364f5c allow override of CB handling
see #14
2015-10-31 11:37:07 +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
ad1e609850 change private to protected (see #10) 2015-08-26 19:15:37 +02:00
03185498e8 allow overriding the handling of Non Websocket Connection by extending the class.
see #10
2015-08-08 19:54:36 +02:00
b5dbeccdf5 first steps to Client 2015-05-23 23:51:32 +02:00
2798232074 add IPAddress remoteIP(uint8_t num)
update example
2015-05-23 09:47:39 +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
a14a58dbd2 message browser to client working 2015-05-22 20:35:51 +02:00
d63e8fdafb speed up connection handling
note: dont use print on tcp! to slow! (17sec vs 78ms)

use client ptr as parameter for the most functions
2015-05-22 14:40:46 +02:00
02da0e0aa7 begin of WebSockets Server development
receive and phasing of WebSockets Header working
2015-05-22 14:19:01 +02:00