Skip to content

Commit

Permalink
Fix RouterMethods.ws (#66)
Browse files Browse the repository at this point in the history
* Fix RouterMethods.ws

* Update Package.swift to use RC.1

* Update Package.swift

---------

Co-authored-by: Joannis Orlandos <[email protected]>
  • Loading branch information
adam-fowler and Joannis committed Jul 1, 2024
1 parent c34d1bc commit 948b417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
.library(name: "HummingbirdWSCompression", targets: ["HummingbirdWSCompression"]),
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-beta.7"),
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0-rc.1"),
.package(url: "https://github.com/apple/swift-http-types.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.62.0"),
Expand Down
2 changes: 1 addition & 1 deletion Sources/HummingbirdWebSocket/WebSocketRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ extension RouterMethods {
/// - shouldUpgrade: Should request be upgraded
/// - handler: WebSocket channel handler
@discardableResult public func ws(
_ path: String = "",
_ path: RouterPath = "",
shouldUpgrade: @Sendable @escaping (Request, Context) async throws -> RouterShouldUpgrade = { _, _ in .upgrade([:]) },
onUpgrade handler: @escaping WebSocketDataHandler<WebSocketContextFromRouter<Context>>
) -> Self where Context: WebSocketRequestContext {
Expand Down

0 comments on commit 948b417

Please sign in to comment.