From 8d2d799eb0318789af1792bcecd1f0193791d15c Mon Sep 17 00:00:00 2001 From: Benjamin Horsleben Date: Thu, 4 Jan 2024 19:34:47 +0100 Subject: [PATCH] Changed type of send(_ binary:) from `[UInt8]` to `some DataProtocol`, to which `[UInt8]` conforms --- Sources/WebSocketKit/WebSocket.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }