Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/WebSocketKit/WebSocketClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public final class WebSocketClient: Sendable {
assert(["ws", "wss"].contains(scheme))
let upgradePromise = self.group.any().makePromise(of: Void.self)
let bootstrap = WebSocketClient.makeBootstrap(on: self.group)
.channelOption(ChannelOptions.socket(SocketOptionLevel(IPPROTO_TCP), TCP_NODELAY), value: 1)
.channelOption(.tcpOption(.tcp_nodelay), value: 1)
.channelInitializer { channel -> EventLoopFuture<Void> in

let uri: String
Expand Down
2 changes: 1 addition & 1 deletion Tests/WebSocketKitTests/Utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ internal final class WebsocketBin {
}

self.serverChannel = try! ServerBootstrap(group: self.group)
.serverChannelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
.serverChannelOption(.socketOption(.so_reuseaddr), value: 1)
.childChannelInitializer { channel in
do {

Expand Down
Loading