resolved some issue and added method to read readystate of the websocket

This commit is contained in:
Pasquale Boemio
2013-05-11 09:55:41 +02:00
parent 7ac70dbdcf
commit bc1368b849
3 changed files with 20 additions and 16 deletions
+2 -1
View File
@@ -17,7 +17,8 @@ int main()
ws->send("goodbye");
ws->send("hello");
ws->close();
while(true) {
while(ws->getReadyState() != WebSocket::CLOSED)
{
ws->poll();
ws->dispatch(handle_message);
}