Creates a stub which will return the given messages when WebSocket.receive is called by the client.
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 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.
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 by subsequently calling one of the WebSocketStub.thenRespond methods.
Creates a stub which won't return any initial responses when WebSocket.receive is called by the client.
Creates a stub which won't return any initial responses when WebSocket.receive is called by the client. Messages can be enqueued to be returned by the stub by subsequently calling one of the WebSocketStub.thenRespond methods.