Newer
Older
// Package websocket implements the RFC 6455 WebSocket protocol.
// Use Dial to dial a WebSocket server.
//
// Accept to accept a WebSocket client.
//
// Conn represents the resulting WebSocket connection.
// The examples are the best way to understand how to correctly use the library.
// The wsjson and wspb subpackages contain helpers for JSON and protobuf messages.
// More documentation at https://nhooyr.io/websocket.
// The client side supports compiling to Wasm.
// See https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
//
// - HTTPClient, HTTPHeader and CompressionMode in DialOptions are no-op
// - *http.Response from Dial is &http.Response{} on success
package websocket // import "nhooyr.io/websocket"