The close function will send a close frame, read and discard incoming message data until receiving a close frame, and then shut down the underlying connection before returning.
The close function will send a close frame, read and discard incoming message data until receiving a close frame, and then shut down the underlying connection before returning.