Make use of NSURLSessionWebSocket.sendCloseCode if available
Created attachment 424772 [details] Patch
<rdar://problem/76055268>
Comment on attachment 424772 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424772&action=review > Source/WebKit/NetworkProcess/cocoa/WebSocketTaskCocoa.mm:42 > +@interface NSURLSessionWebSocketTask (SPI) > +// Send close frame but do not cancel the task > +- (void)_sendCloseCode:(NSURLSessionWebSocketCloseCode)closeCode reason:(NSData *)reason; > +@end Please put SPI declarations into the CFNetworkSPI.h header.
Created attachment 424785 [details] Patch
Committed r275294: <https://commits.webkit.org/r275294> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424785 [details].