superset/superset-websocket/utils/client-ws-app
dependabot[bot] e2a6d370f0
build(deps): bump send and express in /superset-websocket/utils/client-ws-app (#30225)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-10 23:24:07 -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 build(node): Bumping to Node 20 (#29988) 2024-08-21 16:48:21 -06:00
README.md chore: cleanup documentation (#29552) 2024-07-11 14:39:23 -07:00
app.js chore(websocket): bump dependencies (#17325) 2021-11-03 12:17:36 +02:00
package-lock.json build(deps): bump send and express in /superset-websocket/utils/client-ws-app (#30225) 2024-09-10 23:24:07 -06:00
package.json build(deps): bump send and express in /superset-websocket/utils/client-ws-app (#30225) 2024-09-10 23:24:07 -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.