* Calling ::close() when txbuf empties and readyState is CLOSING

* Removing unnecessary const.
* Fixing up spacing to be consistent with rest of code.
This commit is contained in:
David Baird
2013-05-14 10:51:37 -06:00
parent bc1368b849
commit 86ec5a65b1
2 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ struct WebSocket {
virtual void poll() = 0;
virtual void send(std::string message) = 0;
virtual void close() = 0;
virtual const readyStateValues getReadyState() = 0;
virtual readyStateValues getReadyState() = 0;
template<class Callable>
void dispatch(Callable callable) { // N.B. this is compatible with both C++11 lambdas, functors and C function pointers
struct _Callback : public Callback {