WebSocketStub

sttp.ws.testing.WebSocketStub$
See theWebSocketStub companion class

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def initialReceive(messages: List[WebSocketFrame]): WebSocketStub[Unit]

Creates a stub which will return the given messages when WebSocket.receive is called by the client. More messages can be enqueued to be returned by the stub in response to WebSocket.send by subsequently calling one of the WebSocketStub.thenRespond methods.

Creates a stub which will return the given messages when WebSocket.receive is called by the client. More messages can be enqueued to be returned by the stub in response to WebSocket.send by subsequently calling one of the WebSocketStub.thenRespond methods.

Attributes

def initialReceiveWith(events: List[Try[WebSocketFrame]]): WebSocketStub[Unit]

Creates a stub which will return the given responses when WebSocket.receive is called by the client. More messages can be enqueued to be returned by the stub in response to WebSocket.send by subsequently calling one of the WebSocketStub.thenRespond methods.

Creates a stub which will return the given responses when WebSocket.receive is called by the client. More messages can be enqueued to be returned by the stub in response to WebSocket.send by subsequently calling one of the WebSocketStub.thenRespond methods.

Attributes

Creates a stub which won't return any initial frames when WebSocket.receive is called by the client. More messages can be enqueued to be returned by the stub in response to WebSocket.send by subsequently calling one of the WebSocketStub.thenRespond methods.

Creates a stub which won't return any initial frames when WebSocket.receive is called by the client. More messages can be enqueued to be returned by the stub in response to WebSocket.send by subsequently calling one of the WebSocketStub.thenRespond methods.

Attributes