Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/palindromelabs/websockets-playground

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/palindromelabs/websockets-playground

  • v0.0.0-20211123210624-dfbba347eeb5
  • Source
  • Go
  • Socket score

Version published
Created
Source

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:

  • git (to download repositories)
  • Python 3 (for websockets and Tornado)
  • npm, NodeJS (for ws and faye-websocket-node)
  • make (for uWebSockets)
  • go (for Gorilla)
  • Java, mvn (for Java Spring Boot)
  • PHP, composer (for Ratchet)

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.

FAQs

Package last updated on 23 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc