Closed touilleMan closed 5 years ago
@touilleMan Thanks, could you comment on the discussion in #85? We are going through a rework of the API at the moment and this touches part of it.
@touilleMan Thanks for this PR. I've created a general LocalProtocolError and then built this functionality on top in 2b38d3a7c0ebcb6eea39f00c4ab2137371fe3474. Is it missing anything?
@pgjones yep, looks good to me ;-)
I guess we can close this PR then
This introduce the ConnectionStateError exception that will be raised when send a CloseConnection event when the connection is not in OPEN state. On top of that a WSConnection.opened property has been added to help user determine when it should close the connection.