tidwall / SwiftWebSocket

Fast Websockets in Swift for iOS and OSX
MIT License
1.53k stars 246 forks source link

readyState is .connecting before open in deferred open use case #91

Open joejune opened 7 years ago

joejune commented 7 years ago

If you use the WebSocket in deferred open mode, readyState returns .connecting before open() is called. The WebSocket hasn't been opened or even provided a URL yet, so it should return .closed in this case.