Home

Awesome

WebSockets Playground

This repository is designed to jumpstart multiple local WebSocket servers in parallel for testing purposes. This repository was originally designed for WebSocket server fingerprint testing.

Usage

Dependencies

Before running the playground script, install the following:

Setup

Running the bash script ./run_ws_playground.sh should start the local WebSocket servers outlined in the table below. A small playground_send.py file is included to send messages to the servers to verify they are listening and responding.

Tip

If you are running this script more than once, you will probably need to kill the previously started examples with:

# First list the running processes with ps
ps aux
# Manually identify the process IDs for node, golang WS examples
# Then kill each active process to avoid conflicts when script is rerun
kill <PID #>

Table of WebSocket Servers

WebSocket ServerLanguagePort numberURL
wsJS8081127.0.0.1:8081
faye-websocket-nodeJS7000127.0.0.1:7000
GorillaGo8084127.0.0.1:8084/echo
uWebSocketsC++9001127.0.0.1:9001
Java Spring BootJava8080127.0.0.1:8080/stomp
Python websocketsPython8765127.0.0.1:8765
RatchetPHP8085127.0.0.1:8085
TornadoPython3000127.0.0.1:3000

Online WebSocket Servers

The following public WebSocket servers can be used for quick tests, but larger testing loads should be performed on local servers.