Skip to content

Instantly share code, notes, and snippets.

@tchap
Last active December 31, 2015 16:19
Show Gist options
  • Save tchap/8012461 to your computer and use it in GitHub Desktop.
Save tchap/8012461 to your computer and use it in GitHub Desktop.
import (
"http"
"code.google.com/p/go.net/websocket"
)
mux := http.NewServeMux()
mux.Handle("/", r)
mux.Handle("/ws", websocket.Server{
Handshake: s.handleWSHandshake,
Handler: s.handleWSConnection,
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment