Testing WebSocket-enabled applications
Another common wave of applications in today's flood of web applications is reactive real-time applications using WebSocket. WebSocket is a protocol that provides full-duplex bi-directional communication over a single TCP connection using default HTTP and HTTPS ports. Unlike other protocols, one connection is used for two-way communication for the WebSocket protocol. This makes it a good candidate for developing browser chat applications, gaming applications, real-time browser monitoring tools, and so on. It is supported on the majority of modern web browsers.
How to do it…
In this recipe, we will cover how to test WebSocket-enabled applications with JMeter:
Download the JMeter WebSocket Sampler component from https://github.com/maciejzaleski/JMeter-WebSocketSampler/releases.
Download the bundled ZIP containing the needed dependencies for the WebSocket Sampler component from http://download.eclipse.org/jetty/updates/jetty-bundles-9.x/9.1.1.v20140108/.
Install...