Understand the context
WebSocket is a Web technology providing full-duplex communication channels over a single TCP connection. It enables an asynchronous communication from client to server. Unlike HTTP protocol where each client request is followed by a server response, WebSocket client and server can send single non-blocking messages without waiting for any answer from the other peer.
Since communication between client and server does not follow the request/response pattern, designing a scenario based on WebSocket technology is different than designing for plain HTTP protocol. There is no response linked to a request, therefore we have the following constraint, we cannot:
- measure a response time on a business transaction
- block the script execution on a request
- specify a variable extraction on a response for a specific request
Some applications use a proprietary protocol over WebSocket that is compliant with the request/response matching pattern.
Home