We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Needs a close method to stop the server gracefully. If this is not done and the object is just set to nil then the clients continue to stay connected.
I propose something like the following.
// MBWebSocketServer.h - (void)closeServer; // MBWebSocketServer.m - (void)closeServer { _port = 0; _delegate = nil; [socket setDelegate:nil]; [socket disconnect]; [connections removeAllObjects]; NSError *error = nil; }
The text was updated successfully, but these errors were encountered:
Agreed. PR welcome, or I will get round to this next time I hack on this code. Can't give date for that.
Sorry, something went wrong.
No branches or pull requests
Needs a close method to stop the server gracefully. If this is not done and the object is just set to nil then the clients continue to stay connected.
I propose something like the following.
The text was updated successfully, but these errors were encountered: