Skip to content

Commit 4285f7b

Browse files
committed
fix: add ENODATA to disconnect errors
1 parent 3b1009b commit 4285f7b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/NWWebSocket/Model/Client/NWWebSocket.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ open class NWWebSocket: WebSocketConnection {
557557
|| code == .ENOTCONN
558558
|| code == .ECANCELED
559559
|| code == .ENETDOWN
560+
|| code == .ENODATA
560561
|| code == .ECONNABORTED {
561562
return true
562563
} else {

0 commit comments

Comments
 (0)