WSTestClient
org.http4s.client.testkit.WSTestClient$
object WSTestClient
Attributes
- Source
- WSTestClient.scala
- Graph
-
- Supertypes
- Self type
-
WSTestClient.type
Members list
Type members
Classlikes
class WebSocketClientInitException extends RuntimeException
Attributes
- Source
- WSTestClient.scala
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Attributes
- Source
- WSTestClient.scala
def fromHttpWebSocketApp[F[_] : Concurrent](respondToPings: Boolean)(f: WebSocketBuilder2[F] => HttpApp[F]): F[WSClient[F]]
Creates a WSClient from the specified HttpApp. org.http4s.server.websocket.WebSocketBuilder2 is used for specifying the WebSocket connection. Useful for generating pre-determined responses for requests in testing.
Creates a WSClient from the specified HttpApp. org.http4s.server.websocket.WebSocketBuilder2 is used for specifying the WebSocket connection. Useful for generating pre-determined responses for requests in testing.
Value parameters
- f
-
a function that takes a org.http4s.server.websocket.WebSocketBuilder2 and returns an HttpApp.
- respondToPings
-
if true, the client will respond to ping frames with a pong frame.
Attributes
- Source
- WSTestClient.scala
In this article