resolved some issue and added method to read readystate of the websocket
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user