superset/superset-websocket/utils/client-ws-app
dependabot[bot] dd7ce3755c
chore(deps): bump debug from 4.3.4 to 4.3.5 in /superset-websocket/utils/client-ws-app (#28823)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-02 21:08:49 -06:00
..
bin build(deps-dev): bump prettier from 3.0.3 to 3.2.4 in /superset-websocket (#26732) 2024-02-21 18:18:18 -07:00
public build(deps-dev): bump prettier from 2.8.8 to 3.0.1 in /superset-websocket (#24878) 2023-08-07 10:08:41 -07:00
routes feat(SIP-39): Websocket sidecar app (#11498) 2021-04-08 11:12:03 -07:00
views chore(misc): Spelling (#19678) 2023-01-25 16:35:08 -07:00
.nvmrc fix(node): bump node version in nvmrc files (#27974) 2024-04-10 11:33:38 -06:00
README.md feat(SIP-39): Websocket sidecar app (#11498) 2021-04-08 11:12:03 -07:00
app.js chore(websocket): bump dependencies (#17325) 2021-11-03 12:17:36 +02:00
package-lock.json chore(deps): bump debug from 4.3.4 to 4.3.5 in /superset-websocket/utils/client-ws-app (#28823) 2024-06-02 21:08:49 -06:00
package.json chore(deps): bump debug from 4.3.4 to 4.3.5 in /superset-websocket/utils/client-ws-app (#28823) 2024-06-02 21:08:49 -06:00

README.md

Test client application

This Express web application is provided for testing the WebSocket server. It is not required for running the server application, and is provided here for testing and development purposes only.

Running

First, start the WebSocket server:

cd ..
npm run dev-server

Then run the client application:

cd client-ws-app
npm install
npm start

Open http://127.0.0.1:3000 in your web browser.

You can customize the number of WebSocket connections by passing the count in the sockets query param, e.g. http://127.0.0.1:3000?sockets=180, though beware that browsers limit the number of open WebSocket connections to around 200.

Run in conjunction with the loadtest.js script to populate the Redis streams with event data.

Note: this test application is configured to use the server's local config.json values, so care should be taken to not overwrite any sensitive data.