added clean close method

This commit is contained in:
Pasquale Boemio
2013-04-29 17:20:36 +02:00
parent e6fd1fc30e
commit 2b9575c434
5 changed files with 28 additions and 12 deletions
+5 -3
View File
@@ -16,9 +16,11 @@ int main()
assert(ws);
ws->send("goodbye");
ws->send("hello");
while (true) {
ws->poll();
ws->dispatch(handle_message);
ws->close();
while(true) {
ws->poll();
ws->dispatch(handle_message);
}
return 0;
}