good morning!!!!

Skip to content
Snippets Groups Projects
doc.go 921 B
Newer Older
// +build !js

// Package websocket implements the RFC 6455 WebSocket protocol.
Anmol Sethi's avatar
Anmol Sethi committed
//
Anmol Sethi's avatar
Anmol Sethi committed
// https://tools.ietf.org/html/rfc6455
Anmol Sethi's avatar
Anmol Sethi committed
//
Anmol Sethi's avatar
Anmol Sethi committed
// Use Dial to dial a WebSocket server.
//
// Accept to accept a WebSocket client.
//
// Conn represents the resulting WebSocket connection.
Anmol Sethi's avatar
Anmol Sethi committed
//
// The examples are the best way to understand how to correctly use the library.
Anmol Sethi's avatar
Anmol Sethi committed
// The wsjson and wspb subpackages contain helpers for JSON and protobuf messages.
Anmol Sethi's avatar
Anmol Sethi committed
//
Anmol Sethi's avatar
Anmol Sethi committed
// More documentation at https://nhooyr.io/websocket.
// Wasm
// The client side supports compiling to Wasm.
Anmol Sethi's avatar
Anmol Sethi committed
// It wraps the WebSocket browser API.
Anmol Sethi's avatar
Anmol Sethi committed
//
Anmol Sethi's avatar
Anmol Sethi committed
// See https://developer.mozilla.org/en-US/docs/Web/API/WebSocket
//
// Some important caveats to be aware of:
//  - Conn.Ping is no-op
Anmol Sethi's avatar
Anmol Sethi committed
//  - HTTPClient, HTTPHeader and CompressionMode in DialOptions are no-op
//  - *http.Response from Dial is &http.Response{} on success
package websocket // import "nhooyr.io/websocket"