sttp.ws.testing

package sttp.ws.testing

Members list

Type members

Classlikes

class WebSocketStub[S](initialResponses: List[Try[WebSocketFrame]], initialState: S, makeNewResponses: (S, WebSocketFrame) => (S, List[Try[WebSocketFrame]]))

A stub for websockets that uses a queue of frames which are returned when the client calls WebSocket.receive.

A stub for websockets that uses a queue of frames which are returned when the client calls WebSocket.receive.

New messages can be added to queue in reaction to WebSocket.send being invoked, by specifying the behavior using one of the thenRespond variants.

For more complex cases, please provide your own implementation of WebSocket.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object WebSocketStub

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type