diff --git a/Sources/WebSocketKit/WebSocket.swift b/Sources/WebSocketKit/WebSocket.swift index e0c11f55..963e93ed 100644 --- a/Sources/WebSocketKit/WebSocket.swift +++ b/Sources/WebSocketKit/WebSocket.swift @@ -117,7 +117,7 @@ public final class WebSocket: Sendable { } - public func send(_ binary: [UInt8], promise: EventLoopPromise? = nil) { + public func send(_ binary: some DataProtocol, promise: EventLoopPromise? = nil) { self.send(raw: binary, opcode: .binary, fin: true, promise: promise) }