proxy.golang.org : github.com/matthewpi/websocket
Package websocket implements the RFC 6455 WebSocket protocol. https://tools.ietf.org/html/rfc6455 Use Dial to dial a WebSocket server. Use 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://github.com/matthewpi/websocket. The client side supports compiling to Wasm. It wraps the WebSocket browser API. See https://developer.mozilla.org/en-US/docs/Web/API/WebSocket Some important caveats to be aware of: This example starts a WebSocket echo server, dials the server and then sends 5 different messages and prints out the server's responses. This example shows how to correctly handle a WebSocket connection on which you will only write and do not expect to read data messages.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/matthewpi/websocket
License: MIT
Latest release: about 5 years ago
First release: about 6 years ago
Namespace: github.com/matthewpi
Last synced: about 12 hours ago