added clean close method
This commit is contained in:
@@ -17,6 +17,7 @@ int main()
|
||||
ws->poll();
|
||||
ws->dispatch([](const std::string & message) {
|
||||
printf(">>> %s\n", message.c_str());
|
||||
ws->close();
|
||||
});
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user