Documentation
¶
Overview ¶
Package gorillaは、Gorilla WebSocket(https://github.com/gorilla/websocket) を使ってWebSocket接続を行うためのパッケージです。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialWithTLS ¶ added in v0.11.0
func DialWithTLS(c websocket.DialConfig) (websocket.Conn, error)
DialWithTLSは、WebSocketのコネクションを開きます。
`token` はWebSocket接続時の認証ヘッダーに使用します。 `tlsConfig` がnilの場合は無視します。
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Connは、 gorilla/websocketのConnのラッパーです。
func (*Conn) Writer ¶
func (c *Conn) Writer(ctx context.Context, tp websocket.MessageType) (io.WriteCloser, error)
Writerは、WebSocketのWriterを取得します。
Click to show internal directories.
Click to hide internal directories.