Patch with comments forthcoming.
Created attachment 42911 [details] proposed patch We should add a comment explaining what the difference between close() and disconnect() is. It's not sufficiently clear to me yet.
(In reply to comment #1) > Created an attachment (id=42911) [details] > proposed patch > > We should add a comment explaining what the difference between close() and > disconnect() is. It's not sufficiently clear to me yet. disconnect() is used before WebSocketChannelClient is deleted, because it won't receive didClose() anymore. On the other hand, close() will imply didClose() that will be called back later.
Committed <http://trac.webkit.org/changeset/50811> > disconnect() is used before WebSocketChannelClient is deleted, because it won't > receive didClose() anymore. > On the other hand, close() will imply didClose() that will be called back > later. Thank you - I added a comment about the difference.