Discover Packages
nhooyr.io/websocket
wsjson
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Jun 2, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 329
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package wsjson provides websocket helpers for JSON messages.
Read reads a json message from c into v.
If the message is larger than 128 bytes, it will use a buffer
from a pool instead of performing an allocation.
Write writes the json message v to c.
It uses json.Encoder which automatically reuses buffers.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.