Skip to content

An HTTP and WebSocket "echo" server for testing proxies and HTTP clients.

License

Notifications You must be signed in to change notification settings

lumahealthhq/echo-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo Server

A very simple HTTP echo server with support for web-sockets.

  • Any messages sent from a web-socket client are echoed.
  • Visit /.ws for a basic UI to connect and send web-socket messages.
  • Requests to any other URL will return the request headers and body.
  • The PORT environment variable sets the server port.
  • Set the LOG_HTTP_BODY environment variable to dump request bodies to STDOUT.
  • No TLS support yet :(

To run as a container:

docker run --detach -P jmalloc/echo-server

To run as a service:

docker service create --publish 8080 jmalloc/echo-server

About

An HTTP and WebSocket "echo" server for testing proxies and HTTP clients.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 81.5%
  • Makefile 17.8%
  • Dockerfile 0.7%