Add timeout (in milliseconds) argument to poll() with a default of zero to preserve old behavior.

This commit is contained in:
David Baird
2013-12-28 09:41:43 -05:00
parent 079a5eb582
commit 81ed98ca9e
2 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class WebSocket {
// Interfaces:
virtual ~WebSocket() { }
virtual void poll() = 0;
virtual void poll(int timeout = 0) = 0; // timeout in milliseconds
virtual void send(std::string message) = 0;
virtual void close() = 0;
virtual readyStateValues getReadyState() = 0;