WebSocketStub

Companion:
class
class Object
trait Matchable
class Any

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.

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.

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.