Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve WSClient API #5975

Merged

Conversation

armanbilge
Copy link
Member

Backports the good stuff from #5974 into 0.22.

@mergify mergify bot added series/0.22 PRs targeting 0.22.x module:client labels Jan 30, 2022
def sendMany[H[_]: Foldable, A <: WSDataFrame](wsfs: H[A]): G[Unit] = fk(outer.sendMany(wsfs))
def receive: G[Option[WSDataFrame]] = fk(outer.receive)
def subprotocol: Option[String] = outer.subprotocol
def closeFrame: TryableDeferred[G, WSFrame.Close] = outer.closeFrame.mapK(fk)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is where we get into trouble. Unfortunately TryableDeferred#mapK returns a Deferred, not a TryableDeferred. In principle we could upstream a fix to CE2 😩

@rossabaker rossabaker merged commit bc43f5d into http4s:series/0.22 Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:client series/0.22 PRs targeting 0.22.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants