Creates a stub that has the same initial receive frames, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
Creates a stub that has the same initial receive frames, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
Creates a stub that has the same initial responses, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
Creates a stub that has the same initial responses, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
More powerful version of thenRespond, as the given function can additionally use state and implement stateful logic for computing response messages.
Creates a stub that has the same initial receive frames, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
Creates a stub that has the same initial receive frames, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
More powerful version of thenRespond which allows receiving to fail with an exception.
Creates a stub that has the same initial responses, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
Creates a stub that has the same initial responses, but replaces the function that adds responses to be received in reaction to WebSocket.send being invoked.
More powerful version of:
thenRespond, as the given function can additionally use state and implement stateful logic for computing response messages.
thenRespondS which allows receiving to fail with an exception.