top
(README.md)
# Using Websockets

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.

You can see it here: http://www.goin5minutes.com/screencast/episode_4_websockets_with_gorilla_websocket/

## Thanks

... to everybody who has suggested new screencasts or giving a :+1: 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](http://gary.burd.info/go-websocket-chat).
He generously gave permission to use his code in [the issue for this episode](https://github.com/arschles/go-in-5-minutes/issues/10#issuecomment-148243514).

Thanks Gary!

## Outline

1. Server -> browser communication
  - previous approaches
  - websocket basics (more details: https://www.websocket.org/aboutwebsocket.html)
  - efficiency gains
2. Uses
  - chat
  - streaming data from server
  - ...
3. Example

Imports 1 package(s) ΒΆ

  1. github.com/gorilla/websocket