Skip to content

Commit

Permalink
nonNegociatedExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Nov 18, 2024
1 parent 8cbe88f commit f17c65d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/WSCore/Extensions/WebSocketExtensionBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public struct WebSocketExtensionFactory: Sendable {
self.build = build
}

public static func nonNegotiableExtension(_ _build: @escaping @Sendable () -> some WebSocketExtension) -> Self {
public static func nonNegotiatedExtension(_ _build: @escaping @Sendable () -> some WebSocketExtension) -> Self {
return .init {
WebSocketNonNegotiableExtensionBuilder {
_build()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ final class WebSocketExtensionNegotiationTests: XCTestCase {

func shutdown() async {}
}
let clientExtensionBuilders: [WebSocketExtensionBuilder] = [WebSocketExtensionFactory.nonNegotiableExtension {
let clientExtensionBuilders: [WebSocketExtensionBuilder] = [WebSocketExtensionFactory.nonNegotiatedExtension {
MyExtension()
}.build()]
let clientExtensions = try clientExtensionBuilders.buildClientExtensions(from: [:])
Expand Down

0 comments on commit f17c65d

Please sign in to comment.