This is a sample application for the ws module, which is intended to make working with WebSockets in Go as painless as possible.
Clone this repository, open a terminal and change to the repository's directory. Run it with this command:
go run .
Then open your favourite web browser and visit http://localhost:8080. The application will push random strings to the web page every few seconds. You can send your own message using the form at the top of the page and have it echoed back to you.