websocket: Be explicit about goroutine safety

Specifically state that it is safe to call methods on Conn from multiple
goroutines in the docs.

Fixes #6692

Change-Id: I1b0e8812ca5b2e3ca72948c5404d569879e54f34
Reviewed-on: https://go-review.googlesource.com/20455
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Sam Whited
2016-03-08 20:16:50 -06:00
committed by Andrew Gerrand
parent 237fc45c42
commit 3e5cd1ed14

View File

@@ -144,6 +144,8 @@ type frameHandler interface {
}
// Conn represents a WebSocket connection.
//
// Multiple goroutines may invoke methods on a Conn simultaneously.
type Conn struct {
config *Config
request *http.Request