Commit Graph

16 Commits

Author SHA1 Message Date
David Baird e1e50d092d Add binary frames support and tests, to close feature request #38. 2014-12-06 23:38:35 -05:00
Donald Pillou 5a54812efe Add method to send a websocket ping 2014-01-01 20:21:11 +01:00
Donald Pillou 3d76a2ece9 Added optional origin header field 2013-12-30 13:22:41 +01:00
Donald Pillou 4dfa56b8cd Added some const 2013-12-30 13:12:23 +01:00
David Baird 81ed98ca9e Add timeout (in milliseconds) argument to poll() with a default of zero to preserve old behavior. 2013-12-28 09:41:43 -05:00
David Baird 2cac70bcb8 Add masking to sent frames. Masking can be disabled by using the from_url_no_mask() factory instead of from_url(). 2013-11-12 14:46:19 -07:00
David Baird 1feac2e054 Rename struct to class (to help new C++ users who are unfamiliar that structs are classes). 2013-09-27 04:15:13 -06:00
David Baird 86ec5a65b1 * Calling ::close() when txbuf empties and readyState is CLOSING
* Removing unnecessary const.
* Fixing up spacing to be consistent with rest of code.
2013-05-14 10:51:37 -06:00
Pasquale Boemio bc1368b849 resolved some issue and added method to read readystate of the websocket 2013-05-11 09:55:41 +02:00
David Baird f7d998481c Adding close() method. It abruptly closes the socket (does not bother to send a
CLOSE message prior to actually closing the socket).
2013-04-27 23:26:19 -06:00
David Baird af6d38638d Refactoring into separate .hpp and .cpp files. 2013-04-05 11:38:51 -06:00
David Baird ad0f214fa9 Adding wget message. 2012-08-20 13:43:49 -06:00
David Baird 302fa7e9e8 Removing trailing whitespaces. 2012-08-20 13:42:46 -06:00
David Baird ff7780f09b Converting to PIMPL, adding a dummy WebSocket, and introducing a compilation
unit via EASYWSCLIENT_COMPILATION_UNIT.
2012-08-20 13:29:53 -06:00
David Baird d4e6176868 Removing old comments. 2012-08-19 23:24:00 -06:00
David Baird b94fec0873 Got first version working. Can connect, send, and receive. 2012-08-19 22:46:33 -06:00