Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
vendor/github.com/gorilla/websocket
Gopkg.lock
Gopkg.toml
README.md
connection.go
hub.go
index.html
server.go

README.md

Using Websockets

Watch The Screencast

Go in 5 Minutes, episode 4.

This screencast explains some of the concepts around Websockets and presents an example that shows how to build a websocket server.

Screencast video: https://www.goin5minutes.com/screencast/episode_4_websockets_with_gorilla_websocket/

Thanks

... to everybody who has suggested new screencasts or giving a 👍 on an existing issue. I'm listening, so keep them coming! https://github.com/arschles/go-in-5-minutes/issues

Note

All code examples in this episode are adapted from Gary Burd's post. He generously gave permission to use his code in the issue for this episode.

Thanks Gary!

Outline

  1. Server -> browser communication
  1. Uses
  • chat
  • streaming data from server
  • ...
  1. Example
You can’t perform that action at this time.