socketio-client-tool
This tools helps you to test socket.io servers.
The URL should work in most cases. But if you want to run it locally, follow these instructions:
Docker
If you would like to run this tool as a container using Docker, follow the below instructions.
-
Run the container
docker run -p 8080:8080 amritb/socketio-client-tool:latest
(Optional) Run using docker-compose
socketio-client-tool:
image: amritb/socketio-client-tool:latest
ports:
- "8080:8080"
Command Line
To run using the server (http-server) that is included with this tool. Follow the below instructions:
-
Clone this repository:
git clone https://github.com/amritb/socketio-client-tool.git
-
Navigate to the cloned directory:
cd socketio-client-tool
-
Install dependencies:
npm install
-
Run using:
npm start
(Optional) socketio-client-tool uses http-server to serve static files. To pass additional options as found in the http-server documentation, run the above but prefix your commands with --
. For example, to run on port 8099:
npm start -- -p 8099
TODOs
Functional event emit modalAdd events and socket.io URL to page URL so that it can be shared with set inputsAdd toggle button to stringify or not to stringify data while emittingStore history of emits - and can be re-sent in just one clickChange timestamps to better formatted time- Fix URL hashes - if the has only has url value, initiate the app with the connected URL, and no extra event should be added
Show socket.id somewhere in the UI (easy to copy)- Helper links/buttons to add basic socketio events like reconnect, etc.
- Page titles should show the socket.io connection urls
Clear button on panels- Emit buttons on panel headers - which will prefill the emit form's message input field