Is your feature request related to a problem? Please describe.
The close method waits for acknowledgement from the server. In some situations we already know the connection is closed (e.g. if the reachability state to the server has changed), and would rather just force a disconnected state immediately.
Describe the solution you'd like
Introduce forceClose method to WebSocket, that just terminates the channel.
Is your feature request related to a problem? Please describe.
The
closemethod waits for acknowledgement from the server. In some situations we already know the connection is closed (e.g. if the reachability state to the server has changed), and would rather just force a disconnected state immediately.Describe the solution you'd like
Introduce
forceClosemethod toWebSocket, that just terminates the channel.