Web Socket Proxy for Casper-Webclient Binary port queries
1.8K
ws-proxy is a Docker image that acts as a WebSocket proxy for the Casper Web Client. It helps establish a connection between the Casper Web Client and Casper Blockchain nodes, ensuring smooth real-time communication via WebSockets.
ws-proxy forwards WebSocket traffic to port 28101 (NCTL) or a node binary port 7779, enabling seamless communication between the Casper Web Client and the Casper Blockchain nodes.
Before using interchouette/ws-proxy, ensure that:
To run the WebSocket proxy independently:
docker run -d --name ws-proxy -p 4300:4300 interchouette/ws-proxy:latest
-d: Runs the container in detached mode.--name ws-proxy: Assigns a name to the container.-p 4300:4300: Maps port 4300 of the container to port 4300 on your local machine.Access the WebSocket proxy at: http://localhost:4300
For a complete setup with casper-webclient and cors-anywhere, use the following docker-compose.yml:
services:
ws-proxy:
image: interchouette/ws-proxy:latest
container_name: ws-proxy
environment:
PORT: 4300
ALLOWED_HOSTS: |
localhost,
127.0.0.1,
172.17.0.1
ALLOWED_PORTS: |
28101,
7779
ports:
- "4300:4300"
networks:
- casper-network
networks:
casper-network:
external: false
To run all services together:
docker-compose up -d --build
Once running, you can access:
http://localhost:8080http://localhost:4300To stop all services:
docker-compose down
Content type
Image
Digest
sha256:13b3382e3…
Size
41.1 MB
Last updated
about 2 months ago
docker pull interchouette/ws-proxy